prometheus-community / node-exporter-textfile-collector-scripts

Scripts for node-exporter's textfile collector
Apache License 2.0
512 stars 191 forks source link

smartmon.py: use official Prometheus client_python #153

Closed dswarbrick closed 1 year ago

dswarbrick commented 1 year ago

Interim refactoring of smartmon.py to ditch homegrown metric rendering code and use the official Prometheus Python client library.

This collector still needs a pretty major overhaul - and conversion to use smartctl JSON output, which would simplify things considerably. My gut feeling is that the original script was a bit overengineered due to neglecting to use the official client_python library.