Prometheus smart exporter

From wikinotes
Revision as of 04:00, 21 February 2022 by Will (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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