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