1.环境
centos7
prometheus-2.10.0.linux-amd64.tar.gz
node_exporter-0.18.1.linux-amd64.tar.gz
2.安装
[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
systemctl daemon-reload
systemctl start node_exporter
systemctl status node_exporter
systemctl enable node_exporter
prometheus 默认端口 9090
node_exporter 默认端口 9100