Closed matt400 closed 2 years ago
@matt400 I did several changes in your code:
-a
was slower in my system because it gets more info than we need. I use -A -H
insteadtype
attributedevice
attribute to include the full path. This could be consider a breaking change but it's the right way@matt400 @PhilipMay https://github.com/matusnovak/prometheus-smartctl/releases/tag/v2.1.0
This change is adding
model_family
,model_name
,serial_number
to metrics labels, because it makes things easier to identify devices in Grafana. I could do this by changing-A
parameter to-a
in smartctl command, this way I got more data. I don't think this is the best approach, but it's best I could think of right now.I've also added new metric smartprom_smart_passed where values are
1
,0
or-1
when undefined.