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

promethus监控node

 4、grafana 配置 dashbord

 Grafana通过Dashboard展示数据,一个Dashboard上可以有多个图表。可以自己创建,也可以将现有的导入,在Grafana Labs中,有很多分享的Dashboard,我们找一个合适的。

promethus监控node

 点进去,复制它的ID
promethus监控node
回到Grafana,点击 创建 - Import ,输入上面的ID8919,加载成功可显示如下界面

promethus监控node

 点击导入, 这里详细地展示了你的设备信息。

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

promethus监控node

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-05-24
  • 2021-06-16
  • 2021-05-15
猜你喜欢
  • 2021-07-24
  • 2022-03-07
  • 2021-04-09
  • 2021-10-28
  • 2022-12-23
相关资源
相似解决方案