使用docker搭建prometheus和node exporter,解释本机cpu、内存等指标查看方式,以及如何通过http api接口查看监控数据
一、本机运行node-exporter
- 启动node exporter
# 常驻进程启动
$ nohup ./node_exporter > ./node_exporter.log 2>&1 &
# 查看采集到的指标
$ curl 127.0.0.1:9100/metrics
大约 5 分钟
使用docker搭建prometheus和node exporter,解释本机cpu、内存等指标查看方式,以及如何通过http api接口查看监控数据
# 常驻进程启动
$ nohup ./node_exporter > ./node_exporter.log 2>&1 &
# 查看采集到的指标
$ curl 127.0.0.1:9100/metrics