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

 

posted @ 2019-06-18 17:18  鸾舞春秋  阅读(492)  评论(0编辑  收藏  举报