首页 > 其他 > 详细

promethus监控node

时间:2020-06-21 23:06:48      阅读:88      评论:0      收藏:0      [点我收藏+]

1、下载node_exporter

https://github.com/prometheus/node_exporter/releases

 

2、启动node_exporter

nohup ./node_exporter & > nohup.out &

3、prometheus 配置

 - job_name: ‘linux-server‘

   static_configs:
   - targets: [‘10.20.31.207:9100‘]
     labels:
       instance: linux-207
   - targets: [‘10.20.31.208:9100‘]
     labels:
       instance: linux-208

技术分享图片

 

 4、grafana 配置 dashbord

 

注意:如果grafana没有添加Prometheus数据源话,需要先设置数据源(点击设置 - Data Sources - Add data source - Prometheus)。

promethus监控node

原文:https://www.cnblogs.com/zhangmingcheng/p/13174394.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!