smartmon.sh: add metric for active/low-power mode (#1192)
smartmon.sh: add metric for active/low-power mode (#1192)

Add this new metric (where sda is active and sdb is in standby mode):
smartmon_device_active{disk="/dev/sda",type="sat"} 1
smartmon_device_active{disk="/dev/sdb",type="sat"} 0

Also skip further metrics if the drive is in a low-power mode. This
prevents spinning up disks just to get the metrics (which matches e.g.
debian's default behavior for smartd).

Signed-off-by: Andre Heider <1e7356947f0d33dadb5565b421c0f35d2b9308f3@gmail.com>
siavashs/node_exporter,prometheus/node_exporter,derekmarcotte/node_exporter,derekmarcotte/node_exporter,siavashs/node_exporter,derekmarcotte/node_exporter,derekmarcotte/node_exporter,siavashs/node_exporter,siavashs/node_exporter,prometheus/node_exporter,prometheus/node_exporter