matusnovak / prometheus-smartctl

HDD S.M.A.R.T exporter for Prometheus written in Python
The Unlicense
155 stars 43 forks source link

Why do you not use json output for sat devices? #25

Closed PhilipMay closed 2 years ago

PhilipMay commented 2 years ago

Hi,

for all but sat devices you use "json" output like this: https://github.com/matusnovak/prometheus-smartctl/blob/3fbd7bbb06b466bfeb7c1eb99aec45a5951f1458/smartprom.py#L92

Why dont you use it for sat? Would that be an improvement? https://github.com/matusnovak/prometheus-smartctl/blob/3fbd7bbb06b466bfeb7c1eb99aec45a5951f1458/smartprom.py#L61

ngosang commented 2 years ago

PRs are welcome!

ngosang commented 2 years ago

https://github.com/matusnovak/prometheus-smartctl/releases/tag/v2.0.1