collector/mdadm: Support RAID metrics#3031
Conversation
62d8a5a to
a75d6b8
Compare
|
Not sure what's causing the error here, the logs seem okay (no |
711ae52 to
59a5f2d
Compare
|
The log indicates a diff between metrics and expected metrics: --- collector/fixtures/e2e-output.txt 2024-06-21 23:39:55.007539384 +0000 HELP node_md_disks Number of active/failed/spare disks of device.TYPE node_md_disks gaugenode_md_disks{device="md0",state="active"} 2 HELP node_md_state Indicates the state of md-device.TYPE node_md_state gaugenode_md_state{device="md0",state="active"} 1 |
|
Ah! It seems I didn't update the |
|
cc @SuperQ 🙂 |
f029912 to
7658c42
Compare
|
(bump) |
|
@SuperQ PTAL |
|
Ping. |
|
Looks like there's a merge conflict with sys.ttar. |
|
The NetBSD error seems to root from I'll send a patch. |
|
Please merge #3242 first. |
Use `sysfs` for RAID stats. Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
robbat2
left a comment
There was a problem hiding this comment.
LGTM - let's get this merged to unblock the sysfs changes I had planned
* [CHANGE] mdadm: Use sysfs for RAID metrics #3031 * [CHANGE] filesystem: Add erofs in default excluded fs #3313 * [CHANGE] tcpstat: Use std lib binary.NativeEndian #3386 * [FEATURE] pcidevice: Add new collector for PCIe devices #3339 * [FEATURE] AIX: Add more metrics #3338 * [FEATURE] systemd: Add Virtualization metrics #3254 * [FEATURE] swaps: Add new collector #3428 * [ENHANCEMENT] filesystem: Take super options into account for read-only #3387 * [ENHANCEMENT] perf: Add tlb_data metrics #3436 * [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing #3288 * [BUGFIX] diskstats: Simplify condition #3290 * [BUGFIX] thermal: Sanitize darwin thermal strings #3294 * [BUGFIX] filesystem: Fix Darwin collector cgo memory leak #3315 * [BUGFIX] ethtool: Fix returning 0 for sanitized metrics #3335 * [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric #3336 * [BUGFIX] systemd: Fix logging race #3364 * [BUGFIX] filesystem: Fix duplicate Darwin CGO import #3391 Signed-off-by: Ben Kochie <superq@gmail.com>
* [CHANGE] mdadm: Use sysfs for RAID metrics #3031 * [CHANGE] filesystem: Add erofs in default excluded fs #3313 * [CHANGE] tcpstat: Use std lib binary.NativeEndian #3386 * [FEATURE] pcidevice: Add new collector for PCIe devices #3339 * [FEATURE] AIX: Add more metrics #3338 * [FEATURE] systemd: Add Virtualization metrics #3254 * [FEATURE] swaps: Add new collector #3428 * [ENHANCEMENT] filesystem: Take super options into account for read-only #3387 * [ENHANCEMENT] perf: Add tlb_data metrics #3436 * [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing #3288 * [BUGFIX] diskstats: Simplify condition #3290 * [BUGFIX] thermal: Sanitize darwin thermal strings #3294 * [BUGFIX] filesystem: Fix Darwin collector cgo memory leak #3315 * [BUGFIX] ethtool: Fix returning 0 for sanitized metrics #3335 * [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric #3336 * [BUGFIX] systemd: Fix logging race #3364 * [BUGFIX] filesystem: Fix duplicate Darwin CGO import #3391 Signed-off-by: Ben Kochie <superq@gmail.com>
* [CHANGE] mdadm: Use sysfs for RAID metrics #3031 * [CHANGE] filesystem: Add erofs in default excluded fs #3313 * [CHANGE] tcpstat: Use std lib binary.NativeEndian #3386 * [FEATURE] pcidevice: Add new collector for PCIe devices #3339 * [FEATURE] AIX: Add more metrics #3338 * [FEATURE] systemd: Add Virtualization metrics #3254 * [FEATURE] swaps: Add new collector #3428 * [ENHANCEMENT] filesystem: Take super options into account for read-only #3387 * [ENHANCEMENT] perf: Add tlb_data metrics #3436 * [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing #3288 * [BUGFIX] diskstats: Simplify condition #3290 * [BUGFIX] thermal: Sanitize darwin thermal strings #3294 * [BUGFIX] filesystem: Fix Darwin collector cgo memory leak #3315 * [BUGFIX] ethtool: Fix returning 0 for sanitized metrics #3335 * [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric #3336 * [BUGFIX] systemd: Fix logging race #3364 * [BUGFIX] filesystem: Fix duplicate Darwin CGO import #3391 Signed-off-by: Ben Kochie <superq@gmail.com>
* [CHANGE] mdadm: Use sysfs for RAID metrics prometheus#3031 * [CHANGE] filesystem: Add erofs in default excluded fs prometheus#3313 * [CHANGE] tcpstat: Use std lib binary.NativeEndian prometheus#3386 * [FEATURE] pcidevice: Add new collector for PCIe devices prometheus#3339 * [FEATURE] AIX: Add more metrics prometheus#3338 * [FEATURE] systemd: Add Virtualization metrics prometheus#3254 * [FEATURE] swaps: Add new collector prometheus#3428 * [ENHANCEMENT] filesystem: Take super options into account for read-only prometheus#3387 * [ENHANCEMENT] perf: Add tlb_data metrics prometheus#3436 * [BUGFIX] interrupts: Fix OpenBSD interrupt device parsing prometheus#3288 * [BUGFIX] diskstats: Simplify condition prometheus#3290 * [BUGFIX] thermal: Sanitize darwin thermal strings prometheus#3294 * [BUGFIX] filesystem: Fix Darwin collector cgo memory leak prometheus#3315 * [BUGFIX] ethtool: Fix returning 0 for sanitized metrics prometheus#3335 * [BUGFIX] netdev: Fix Darwin netdev i/o bytes metric prometheus#3336 * [BUGFIX] systemd: Fix logging race prometheus#3364 * [BUGFIX] filesystem: Fix duplicate Darwin CGO import prometheus#3391 Signed-off-by: Ben Kochie <superq@gmail.com> Signed-off-by: Shashwat Hiregoudar <shashwathiregoudar@gmail.com>
Use
sysfsfor RAID stats. Also added tests for the collector.Fixes: #842