PMM-15091: stop double-counting RAID md devices in Disk Details - #5675
PMM-15091: stop double-counting RAID md devices in Disk Details#5675mattiasimonato wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the Disk Details Grafana dashboard variable query to avoid double-counting I/O when both Linux software RAID (md*) devices and their member disks are present, improving the accuracy of “Total Performance” panels that aggregate over $device.
Changes:
- Exclude
md*devices from the$devicetemplate variable query (in addition to existingdm-*exclusion) to prevent RAID array + member disk double aggregation. - Apply the same exclusion to both the variable
definitionandqueryfields for consistency.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5675 +/- ##
==========================================
- Coverage 43.59% 37.03% -6.56%
==========================================
Files 415 215 -200
Lines 43134 7168 -35966
Branches 0 592 +592
==========================================
- Hits 18804 2655 -16149
+ Misses 22454 4317 -18137
+ Partials 1876 196 -1680
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
WalkthroughThe OS Disk Details dashboard now excludes both device-mapper ( ChangesDisk device filtering
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Ticket number: PMM-15091
Feature build: SUBMODULES-4488
Total Performance on Disk Details sums metrics over
$device. That variable already skipped LVM devices (dm-*), but still included both the RAID array (md0) and its member disks (sda,sdb). Summing those together counted the same I/O twice, so panels showed about 2× real IOPS/throughput.Fix: exclude RAID arrays in the
$devicequery withdevice!~"dm-.+|md.+", same idea as LVM. Panels keep using$device, so Total Performance stops double-counting. Usedmd.+(notmd[0-9].+) so names likemd0match.Summary by CodeRabbit