# 为什么会有本书

Prometheus是一款优秀的监控平台，而平时最常见的组合是Prometheus+Alertmanager+Grafana。

Prometheus主动拉取数据并存储，配置告警，在触发阈值后，会将告警推送至Alertmanager，Alertmanager根据告警规则进行处理，选择通知用户等；而Grafana主动拉取Prometheus数据进行数据可视化展示。

本书相比较其他的教程，为从零到有的部署，作为一款多年的系统，在数据采集后的教程网上就很欠缺了，对于一款监控系统来说，虽然对应的项目有对应的规则，但是肯定是有一套通用的规则，比如针对Nginx、MySQL这类服务器、数据库，在部署完成Prometheus，把这些通用的监控纳入进来，让系统真正地跑起来，再考虑那些其他的项目，这是一种很简单的逻辑。

本书仍然创作中，大纲可能会进行大量的增删改。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://monaive.gitbook.io/prometheus/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
