安装node exporter

创建Systemd服务

prometheus监控linux系统
#vim /etc/systemd/system/node_exporter.service
[Unit]
Description=mysql_exporter
After=network.target
[Service]
Type=simple
User=prometheus
ExecStart=/usr/local/prom/exporter/node_exporter_0170/node_exporter
Restart=on-failure
[Install]
WantedBy=multi-user.target
prometheus监控linux系统

启动node_exporter

# systemctl start node_exporter
# systemctl status node_exporter

验证

curl http://localhost:9100/metrics

添加prometheus相关配置

prometheus监控linux系统
# vi prometheus280/prometheus.yml

##linux##
  - job_name: 'node'
    static_configs:
    - targets: ['localhost:9100']
      labels:
          instance: lab1
prometheus监控linux系统

重启prometheus即可

prometheus监控linux系统

 

  grafana dashboard

https://grafana.com/dashboards/8919

注意事项:

需要安装饼图的插件:
grafana-cli plugins install grafana-piechart-panel
# 请确保安装后能正常添加饼图。

需要重启grafanaservice grafana-server restart

https://github.com/starsliao/Prometheus

 

相关文章:

  • 2021-12-05
  • 2021-12-19
  • 2021-05-03
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2021-10-24
  • 2021-12-10
  • 2021-07-11
  • 2021-11-20
相关资源
相似解决方案