首页  

Prometheus Pushgateway     所属分类 prometheus 浏览量 74
Pushgateway 是 Prometheus 的一个组件,prometheus 默认通过 Exporter 拉取数据 ,

Pushgateway 通过exporter主动方式推送数据到Pushgateway,再由Prometheus主动去拉取 Pushgateway数据,
用户可以写一些自定义的监控脚本把需要监控的数据发送给Pushgateway。
从prometheus 角度看,都是由prometheus 主动去拉取各个数据源(Exporter和Pushgateway)的数据


Pushgateway 数据中转站 ,提供API,接收数据生产者推送的数据
Pushgateway提供exporter功能, 提供数据 给promethus server



Pushgateway优点


1. Prometheus 默认采用定时拉取targets数据,
   但是如果不在一个子网或者防火墙,prometheus拉取不到targets数据,
   可以采用各个target往pushgateway上push数据,然后prometheus去pushgateway上定时拉取数据

2. 监控业务数据的时候,需要将不同数据汇总, 汇总之后的数据可以由pushgateway统一收集,
   然后由 Prometheus 统一拉取,起到给Prometheus 减压的作用。

3. 自定义采集指标简单。


Pushgateway缺点

Prometheus拉取状态只针对 pushgateway, 不能对每个节点都有效。
Pushgateway出现问题,整个采集到的数据都会出现问题。

Pushgateway 可以持久化推送给它的所有监控数据。prometheus 会拉取到旧的监控数据,需要手动清理 不要的数据。


https://prometheus.io/docs/prometheus/

https://github.com/prometheus/prometheus/

https://github.com/prometheus/pushgateway/

上一篇     下一篇
linux安装切换多个版本jdk

doris 简介

linux 权限 777

flink1.18.1 pushgateway prometheus监控

zookeeper3.4 prometheus监控

grafana Dashboard SpringBoot2 micrometer-prometheus