Prometheus node_exporter grafana部署安装

1.环境

centos7

prometheus-2.10.0.linux-amd64.tar.gz

node_exporter-0.18.1.linux-amd64.tar.gz

2.安装

创建systemd服务

vim /etc/systemd/system/node_exporter.service

[Unit]
Description=node_exporter
After=network.target

[Service]
Type=simple
User=root
ExecStart=/data/app/node_exporter/node_exporter
Restart=on-failure

[Install]
WantedBy=multi-user.target

启动node_exporter

systemctl daemon-reload
systemctl start node_exporter
systemctl status node_exporter

systemctl enable node_exporter

prometheus 默认端口 9090

node_exporter 默认端口 9100

原文地址:https://www.cnblogs.com/liqing1009/p/11046355.html