由于prometheus-node-exporter
不获取硬盘温度,因此单独部署安装prometheuscommunity/smartctl-exporter
来导出磁盘温度数据
https://github.com/prometheus-community/smartctl_exporter
数据导出
在有硬盘的系统中使用Docker Compose运行prometheuscommunity/smartctl-exporter
,其他安装方式请参考官方文档
services:
smartctl-exporter:
image: prometheuscommunity/smartctl-exporter
privileged: true
user: root
ports:
- "9633:9633"
Prometheus新增Job
- job_name: "fnos-disk"
static_configs:
- targets: ['10.115.15.20:9633']
Grafana面板
https://grafana.com/grafana/dashboards/22604-smartctl-exporter-dashboard
我的面板

0