Skip to content

Comments

MDStat parsing enrichment#329

Closed
trearcul wants to merge 1 commit intoprometheus:masterfrom
trearcul:mdstat-enrichment
Closed

MDStat parsing enrichment#329
trearcul wants to merge 1 commit intoprometheus:masterfrom
trearcul:mdstat-enrichment

Conversation

@trearcul
Copy link

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

Added parsing of
- RAID personality
- Sync/check percent and remaining minutes
- Assigned partitions/devices
Expected test data updated accordingly

Signed-off-by: trearcul <pavel.vondrak@hotmail.cz>
@dswarbrick
Copy link
Contributor

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

@SuperQ
Copy link
Member

SuperQ commented Feb 5, 2021

This looks like it needs a rebase.

@SuperQ
Copy link
Member

SuperQ commented May 22, 2023

This appears abandoned.

@SuperQ SuperQ closed this May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants