Prometheus smart exporter

From wikinotes

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