node-exporter-textfile-collector-scripts
node-exporter-textfile-collector-scripts copied to clipboard
smartmon.py: Collect values from ATA Device Statistics log pages
The ATA Device Statistics can expose additional values on top of those already reported among the SMART attributes. ADATA SP600NS34 SSDs, for example, only report their endurance indicator in the device statistics. TOSHIBA THNSNJ256GMCU, to give another example, only report the number of read/written sectors in the statistics.
The descriptions of the offsets are standardized, see smartmontools' "ataprint.cpp" source file. For this reason the corresponding metrics ("smartmon_devstats_desc") are collected and emitted only once for all disks.
@SuperQ, would it be possible to get a review on this change?