Prometheus + Grafana 使用 Node Exporter 监控主机
参考:https://songjiayang.gitbooks.io/prometheus/content/exporter/nodeexporter.html
官方下载:https://prometheus.io/download/
Grafana Dashboard:https://grafana.com/grafana/dashboards/8919
Node Exporter部署
# tar -zxf node_exporter-0.18.1.linux-amd64.tar.gz -C /usr/local/
# mv /usr/local/node_exporter-0.18.1.linux-amd64 /usr/local/node_exporter
# cd /usr/local/node_exporter/
# nohup ./node_exporter &
# firewall-cmd --permanent --add-port=9100/tcp
# firewall-cmd --reload
Prometheus配置
- job_name: linux
static_configs:
- targets: ['192.168.16.80:9100']
labels:
instance: node-80
group: inner
- targets: ['192.168.16.82:9100']
labels:
instance: node-82
group: inner
- targets: ['192.168.16.86:9100']
labels:
instance: node-86
group: inner
- targets: ['192.168.16.87:9100']
labels:
instance: node-87
group: inner
- targets: ['192.168.16.88:9100']
labels:
instance: node-88
group: inner
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/25/prometheus-grafana-using-node-exporter-monitoring-hosts/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
Prometheus + Grafana 使用 Node Exporter 监控主机
参考:https://songjiayang.gitbooks.io/prometheus/content/exporter/nodeexporter.html
官方下载:https://prometheus.io/download/
Grafana Dashboard:htt……
文章目录
关闭
共有 0 条评论