> For the complete documentation index, see [llms.txt](https://yunlzheng.gitbook.io/prometheus-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yunlzheng.gitbook.io/prometheus-book/master.md).

# Introduction

* [全书组织](/prometheus-book/introduction.md)

## Part I - Prometheus基础

* [第1章 天降奇兵](/prometheus-book/parti-prometheus-ji-chu/quickstart.md)
  * [Prometheus简介](/prometheus-book/parti-prometheus-ji-chu/quickstart/why-monitor.md)
  * [初识Prometheus](/prometheus-book/parti-prometheus-ji-chu/quickstart/prometheus-quick-start.md)
    * [安装Prometheus Server](/prometheus-book/parti-prometheus-ji-chu/quickstart/prometheus-quick-start/install-prometheus-server.md)
    * [使用Node Exporter采集主机数据](/prometheus-book/parti-prometheus-ji-chu/quickstart/prometheus-quick-start/use-node-exporter.md)
    * [使用PromQL查询监控数据](/prometheus-book/parti-prometheus-ji-chu/quickstart/prometheus-quick-start/promql_quickstart.md)
    * [监控数据可视化](/prometheus-book/parti-prometheus-ji-chu/quickstart/prometheus-quick-start/use-grafana-create-dashboard.md)
  * [任务和实例](/prometheus-book/parti-prometheus-ji-chu/quickstart/prometheus-job-and-instance.md)
  * [Prometheus核心组件](/prometheus-book/parti-prometheus-ji-chu/quickstart/prometheus-arch.md)
  * [小结](/prometheus-book/parti-prometheus-ji-chu/quickstart/summary.md)
* [第2章 探索PromQL](/prometheus-book/parti-prometheus-ji-chu/promql.md)
  * [理解时间序列](/prometheus-book/parti-prometheus-ji-chu/promql/what-is-prometheus-metrics-and-labels.md)
  * [Metrics类型](/prometheus-book/parti-prometheus-ji-chu/promql/prometheus-metrics-types.md)
  * [初识PromQL](/prometheus-book/parti-prometheus-ji-chu/promql/prometheus-query-language.md)
  * [PromQL操作符](/prometheus-book/parti-prometheus-ji-chu/promql/prometheus-promql-operators-v2.md)
  * [PromQL聚合操作](/prometheus-book/parti-prometheus-ji-chu/promql/prometheus-aggr-ops.md)
  * [PromQL内置函数](/prometheus-book/parti-prometheus-ji-chu/promql/prometheus-promql-functions.md)
  * [在HTTP API中使用PromQL](/prometheus-book/parti-prometheus-ji-chu/promql/prometheus-promql-with-http-api.md)
  * [最佳实践：4个黄金指标和USE方法](/prometheus-book/parti-prometheus-ji-chu/promql/prometheus-promql-best-praticase.md)
  * [小结](/prometheus-book/parti-prometheus-ji-chu/promql/summary.md)
* [第3章 Prometheus告警处理](/prometheus-book/parti-prometheus-ji-chu/alert.md)
  * [Prometheus告警简介](/prometheus-book/parti-prometheus-ji-chu/alert/prometheus-alert-manager-overview.md)
  * [自定义Prometheus告警规则](/prometheus-book/parti-prometheus-ji-chu/alert/prometheus-alert-rule.md)
  * [部署AlertManager](/prometheus-book/parti-prometheus-ji-chu/alert/install-alert-manager.md)
  * [Alertmanager配置概述](/prometheus-book/parti-prometheus-ji-chu/alert/alert-manager-config.md)
  * [基于标签的告警处理路由](/prometheus-book/parti-prometheus-ji-chu/alert/alert-manager-route.md)
  * [使用Receiver接收告警信息](/prometheus-book/parti-prometheus-ji-chu/alert/alert-manager-use-receiver.md)
    * [集成邮件系统](/prometheus-book/parti-prometheus-ji-chu/alert/alert-manager-use-receiver/alert-with-smtp.md)
    * [集成Slack](/prometheus-book/parti-prometheus-ji-chu/alert/alert-manager-use-receiver/alert-with-slack.md)
    * [集成企业微信](https://github.com/yunlzheng/prometheus-book/tree/14874990610449eea8183c19f2023f1ececb5331/alert/alert-with-wechat.md)
    * [集成钉钉：基于Webhook的扩展](/prometheus-book/parti-prometheus-ji-chu/alert/alert-manager-use-receiver/alert-manager-extension-with-webhook.md)
  * [告警模板详解](/prometheus-book/parti-prometheus-ji-chu/alert/alert-template.md)
  * [屏蔽告警通知](/prometheus-book/parti-prometheus-ji-chu/alert/alert-manager-inhibit.md)
  * [使用Recoding Rules优化性能](/prometheus-book/parti-prometheus-ji-chu/alert/prometheus-recoding-rules.md)
  * [小结](/prometheus-book/parti-prometheus-ji-chu/alert/summary.md)

## Part II - Prometheus进阶

* [第4章 Exporter详解](/prometheus-book/part-ii-prometheus-jin-jie/exporter.md)
  * [Exporter是什么](/prometheus-book/part-ii-prometheus-jin-jie/exporter/what-is-prometheus-exporter.md)
  * [常用Exporter](/prometheus-book/part-ii-prometheus-jin-jie/exporter/commonly-eporter-usage.md)
    * [容器监控：cAdvisor](/prometheus-book/part-ii-prometheus-jin-jie/exporter/commonly-eporter-usage/use-prometheus-monitor-container.md)
    * [监控MySQL运行状态：MySQLD Exporter](/prometheus-book/part-ii-prometheus-jin-jie/exporter/commonly-eporter-usage/use-promethues-monitor-mysql.md)
    * [网络探测：Blackbox Exporter](/prometheus-book/part-ii-prometheus-jin-jie/exporter/commonly-eporter-usage/install_blackbox_exporter.md)
  * [使用Java自定义Exporter](/prometheus-book/part-ii-prometheus-jin-jie/exporter/custom_exporter_with_java.md)
    * [使用Client Java构建Exporter程序](/prometheus-book/part-ii-prometheus-jin-jie/exporter/custom_exporter_with_java/client_library_java.md)
    * [在应用中内置Prometheus支持](/prometheus-book/part-ii-prometheus-jin-jie/exporter/custom_exporter_with_java/custom_app_support_prometheus.md)
  * [小结](/prometheus-book/part-ii-prometheus-jin-jie/exporter/summary.md)
* [第5章 数据与可视化](/prometheus-book/part-ii-prometheus-jin-jie/grafana.md)
  * [使用Console Template](/prometheus-book/part-ii-prometheus-jin-jie/grafana/use-console-template.md)
  * [Grafana的基本概念](/prometheus-book/part-ii-prometheus-jin-jie/grafana/grafana-intro.md)
  * [Grafana与数据可视化](/prometheus-book/part-ii-prometheus-jin-jie/grafana/grafana-panels.md)
    * [变化趋势：Graph面板](/prometheus-book/part-ii-prometheus-jin-jie/grafana/grafana-panels/use_graph_panel.md)
    * [分布统计：Heatmap面板](/prometheus-book/part-ii-prometheus-jin-jie/grafana/grafana-panels/use_heatmap_panel.md)
    * [当前状态：SingleStat面板](/prometheus-book/part-ii-prometheus-jin-jie/grafana/grafana-panels/use_singlestat_panel.md)
  * [模板化Dashboard](/prometheus-book/part-ii-prometheus-jin-jie/grafana/templating.md)
  * [小结](/prometheus-book/part-ii-prometheus-jin-jie/grafana/summary.md)
* [第6章 集群与高可用](/prometheus-book/part-ii-prometheus-jin-jie/readmd.md)
  * [本地存储](/prometheus-book/part-ii-prometheus-jin-jie/readmd/prometheus-local-storage.md)
  * [远程存储](/prometheus-book/part-ii-prometheus-jin-jie/readmd/prometheus-remote-storage.md)
  * [联邦集群](/prometheus-book/part-ii-prometheus-jin-jie/readmd/scale-prometheus-with-federation.md)
  * [Prometheus高可用](/prometheus-book/part-ii-prometheus-jin-jie/readmd/prometheus-and-high-availability.md)
  * [Alertmanager高可用](/prometheus-book/part-ii-prometheus-jin-jie/readmd/alertmanager-high-availability.md)
  * [小结](/prometheus-book/part-ii-prometheus-jin-jie/readmd/summary.md)
* [第7章 Prometheus服务发现](/prometheus-book/part-ii-prometheus-jin-jie/sd.md)
  * [Prometheus与服务发现](/prometheus-book/part-ii-prometheus-jin-jie/sd/why-need-service-discovery.md)
  * [基于文件的服务发现](/prometheus-book/part-ii-prometheus-jin-jie/sd/service-discovery-with-file.md)
  * [基于Consul的服务发现](/prometheus-book/part-ii-prometheus-jin-jie/sd/service-discovery-with-consul.md)
  * [服务发现与Relabel](/prometheus-book/part-ii-prometheus-jin-jie/sd/service-discovery-with-relabel.md)
  * [小结](/prometheus-book/part-ii-prometheus-jin-jie/sd/summary.md)

## Part III - Prometheus实战

* [第8章 监控Kubernetes](/prometheus-book/part-iii-prometheus-shi-zhan/readmd.md)
  * [初识Kubernetes](/prometheus-book/part-iii-prometheus-shi-zhan/readmd/kubernetes-with-minikube.md)
  * [部署Prometheus](/prometheus-book/part-iii-prometheus-shi-zhan/readmd/deploy-prometheus-in-kubernetes.md)
  * [Kubernetes下的服务发现](/prometheus-book/part-iii-prometheus-shi-zhan/readmd/service-discovery-with-kubernetes.md)
  * [监控Kubernetes集群](/prometheus-book/part-iii-prometheus-shi-zhan/readmd/use-prometheus-monitor-kubernetes.md)
  * [基于Prometheus的弹性伸缩](/prometheus-book/part-iii-prometheus-shi-zhan/readmd/hap-with-prometheus.md)
  * [小结](/prometheus-book/part-iii-prometheus-shi-zhan/readmd/summary.md)
* [第9章 Prometheus Operator](/prometheus-book/part-iii-prometheus-shi-zhan/operator.md)
  * [什么是Prometheus Operator](/prometheus-book/part-iii-prometheus-shi-zhan/operator/what-is-prometheus-operator.md)
  * [使用Operator管理Prometheus](/prometheus-book/part-iii-prometheus-shi-zhan/operator/use-operator-manage-prometheus.md)
  * [使用Operator管理监控配置](/prometheus-book/part-iii-prometheus-shi-zhan/operator/use-operator-manage-monitor.md)
  * [在Prometheus Operator中使用自定义配置](/prometheus-book/part-iii-prometheus-shi-zhan/operator/use-custom-configuration-in-operator.md)
  * [小结](/prometheus-book/part-iii-prometheus-shi-zhan/operator/summary.md)
* [参考资料](/prometheus-book/part-iii-prometheus-shi-zhan/references.md)
