一、简介
node_exporter用来安装到被监控的主机上,暴露被监控主机的指标数据,服务器端基于http协议调用的端口9100(默认)来获取被监控服务器信息。
二、安装部署
1、解压安装
# tar -xvf node_exporter-*.linux-amd64.tar.gz -C /usr/local/
# mv node_exporter-0.18.1.linux-amd64/ node_exporter
2、 启动node-exporter
# nohup /usr/local/node_exporter/node_exporter &
3、加入node_exporter开机自启
cat > /etc/systemd/system/node_exporter.service << "EOF"
[Unit]
Description=node_export
Documentation=https://github.com/prometheus/node_exporter
[Service]
ExecStart=/usr/local/node_exporter/node_exporter
Restart=on-failure
[Install]
WantedBy=multi-user.target
EOF
# systemctl daemon-reload
# systemctl enable node_exporter
# systemctl start node_exporter
# systemctl status node_exporter
标签:node,exporter,tar,prometheus,systemctl,安装
From: https://www.cnblogs.com/OpenSourceSite/p/18008816