procfs icon indicating copy to clipboard operation
procfs copied to clipboard

MDStat parsing enrichment

Open trearcul opened this issue 5 years ago • 2 comments

This PR enriches data parsing of MD devices from /proc/mdstat. All the additional data could be useful for enhancing prometheus exporters (e.g., NodeExporter) as a next step.

Added parsing of:

  • RAID level
  • Assigned devices
  • Synced/checked percent and remaining minutes

trearcul avatar Sep 16 '20 09:09 trearcul

I strongly suggest that future enhancements to mdraid stats use the sysfs entries, rather than add any more parsing of /proc/mdstat. The sysfs interface is designed to be machine-readable, whereas /proc/mdstat is designed to be human-readable. This results in a lot of regexes, which may not stand the test of time if the format of /proc/mdstat is changed or enhanced (unlikely).

See also prometheus/node_exporter#1085

dswarbrick avatar Oct 07 '20 18:10 dswarbrick

This looks like it needs a rebase.

SuperQ avatar Feb 05 '21 13:02 SuperQ

This appears abandoned.

SuperQ avatar May 22 '23 10:05 SuperQ