Prometheus smart exporter: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[smartctl]] HDD info exposed to prometheus.<br> | [[smartctl]] HDD info exposed to prometheus.<br> | ||
Unfortunately, it depends on systemd. | Unfortunately, it depends on systemd. | ||
{{ NOTE | | |||
Don't use this, use a cron job to dump metrics for [[node_exporter]] }} | |||
{{ WARNING | | {{ WARNING | |
Latest revision as of 04:00, 21 February 2022
smartctl HDD info exposed to prometheus.
Unfortunately, it depends on systemd.
NOTE:
Don't use this, use a cron job to dump metrics for node_exporter
WARNING:
This is safer than smartctl_exporter.
A helper that runs as root runs smartctl, and the exporter runs as a non-privileged user.
Unfortunately it depends on systemd for some fancy background processing.
I think this could be simplified and made more portable by dumping to files.
I may write my own exporter.
Documentation
github https://github.com/cloudandheat/prometheus_smart_exporter