Grafana 대시보드 (Prometheus - node_exporter)
Linux 모니터링
node_exporter 설치
exporter download
https://prometheus.io/download/
# tar xvf node_exporter-1.0.1.linux-amd64.tar.gz
# cp node_exporter-1.0.1.linux-amd64/node_exporter /usr/sbin/
create service file
# vi /etc/systemd/system/node_exporter.service [Unit] Description=Node Exporter
[Service] User=exporter EnvironmentFile=/etc/sysconfig/node_exporter ExecStart=/usr/sbin/node_exporter $OPTIONS
[Install] WantedBy=multi-user.target |
create sysconfig file
# touch /etc/sysconfig/node_exporter # OPTIONS= "--collector.textfile.directory /var/lib/node_exporter/textfile_collector"
auto-start config
# systemctl daemon-reload
# systemctl enable node_exporter
# systemctl start node_exporter
# systemctl status node_exporter
Grafana Dashboard 추가
Configuration / Data sources / Add data source 선택
Prometheus 선택
Target node_exporter의 IP 및 포트(default : 9090) 입력
Node 모니터링 화면