2026/10/24 5:29:28
网站建设
项目流程
它的存在允许短暂和批量作业将其指标暴露给 Prometheus
主动推送
盲目的使用Pushgateway来代替Prometheus常用的拉动模型(pull model)来收集指标,会有以下几种问题:
- 通过单个 Pushgateway 监控多个实例时, Pushgateway 将会成为单点故障和潜在瓶颈
- 当你通过up 命令(每次擦出时生成),将丢失 Prometheus 自动实例运行状态监控
- Pushgateway 不会忘记推送时间序列并将永远暴露给 Prometheus,除非这些序列是通过 Pushgateway 的 API 手动删除的
#prometheus配置 9091
#pushgateway业务监控
- job_name: 'pushgateway-qcloud'
static_configs:
- targets: ['172.16.0.64:9091']
labels:
idc: 'qcloud'
honor_labels: true