Prometheus监控并存储Linux系统中机械硬盘温度
由于`prometheus-node-exporter`不获取硬盘温度,因此单独部署安装`prometheuscommunity/smartctl-exporter`来导出磁盘温度数据 https://github.com/prometheus-community/smartctl_exporter
由于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"yamlPrometheus新增Job#
- job_name: "fnos-disk"
static_configs:
- targets: ['10.115.15.20:9633']yamlGrafana面板#
https://grafana.com/grafana/dashboards/22604-smartctl-exporter-dashboard/ ↗
我的面板