Prometheus监控,Prometheus部署在外网服务器,其中有个监控客户端机器的网络环境是没有外网ip(也就是Prometheus不能访问到他),但客户端能访问外网
所以我的想法是客户端推送监控指标到Prometheus,开始以为pushgateway能用,但发现pushgateway接收push指标只能自己开发,而不能用现成的exporter
Prometheus监控,Prometheus部署在外网服务器,其中有个监控客户端机器的网络环境是没有外网ip(也就是Prometheus不能访问到他),但客户端能访问外网
所以我的想法是客户端推送监控指标到Prometheus,开始以为pushgateway能用,但发现pushgateway接收push指标只能自己开发,而不能用现成的exporter
不太清楚你用prometheus监控的具体应用。如果像是JAVA应用,prometheus也会提供相应的客户端来收集指标
https://github.com/prometheus...
大概的思路是:
1.按github上的说明在应用中加入指标收集的依赖
2.按文档中Exporting to a Pushgateway章节的说明,将指标推送到push gateway.