procfs
procfs copied to clipboard
feat: expose MD raid component devices
Expose what component devices are part of a MD raid device, as well as the most common flags per-component. This will enable a future node_exporter metric showing which component of a RAID had failed.
This PR builds up top of PR 505, implementing the requested changes to detect the known RAID types on a given system.
Reference: https://github.com/prometheus/procfs/pull/505 Signed-off-by: Robin Johnson [email protected]
@SuperQ can you have a look at this please?
I'm pretty sure this is already at least partially implemented by the mdraid sysfs parsing, https://pkg.go.dev/github.com/prometheus/[email protected]/sysfs#Mdraid
Drawing attention once again to https://github.com/prometheus/node_exporter/issues/1085 - I really think it's time to mark the old /proc/mdstat parser as deprecated, before any more technical debt gets added to it.
I agree, I think we should focus the effort on the sysfs /sys/block/md* parsing.
@SuperQ can you please merge https://github.com/prometheus/node_exporter/pull/3031 then - and I'll build on top of that to expose per-device state?
@robbat2 Sure, sounds good.
This needs a rebase.
This needs a rebase.
Done