wiki/运维/监控/Prometheus/Prometheus学习笔记.md
2025-01-02 10:46:09 +08:00

15 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Prometheus学习笔记
## 一、简介
Prometheus是一个开源的系统监控和报警系统现在已经加入到CNCF基金会成为继k8s之后第二个在CNCF托管的项目在kubernetes容器管理系统中通常会搭配prometheus进行监控同时也支持多种`exporter`采集数据,还支持`pushgateway`进行数据上报Prometheus性能足够支撑上万台规模的集群。
## 二、架构图
![image-20230403115626708](C:\Users\zhengchiliu\Desktop\note\云原生\Prometheus\Prometheus学习笔记.assets\image-20230403115626708.png)
1. `Prometheus Server`: 用于收集和存储时间序列数据。
2. `Exporters`: prometheus支持多种exporter通过exporter可以采集metrics数据然后发送到prometheus server端所有向promtheus server提供监控数据的程序都可以被称为exporter
3. `Alertmanager`: 从 Prometheus server 端接收到 alerts 后,会进行去重,分组,并路由到相应的接收方,发出报警,常见的接收方式有:电子邮件,微信,钉钉, slack等。
4. `Grafana`:监控仪表盘,可视化监控数据。
5. `pushgateway`: 各个目标主机可上报数据到pushgateway然后prometheus server统一从pushgateway拉取数据。