2022年03月21日
实现一个prometheus的exporter示例1,必须启动prometheus(prometheus以客户端的模式运行,然后自动周期去prometheus.yml中配置的exporter拉取数据),配置 prometheus.yml中exporter对应的promhttp的IP和端口,如果有改动配置文件,重启下prometheus程序;2,启动自己的exporter,访问自己的exporter端口以及prometheus的task列表,都会有状态和数据变化。3,启动grafana-6.7.6