Skip to content

PMM-15091: stop double-counting RAID md devices in Disk Details#5675

Open
mattiasimonato wants to merge 4 commits into
mainfrom
PMM-15091-exclude-md-from-disk-details
Open

PMM-15091: stop double-counting RAID md devices in Disk Details#5675
mattiasimonato wants to merge 4 commits into
mainfrom
PMM-15091-exclude-md-from-disk-details

Conversation

@mattiasimonato

@mattiasimonato mattiasimonato commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

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 $device query with device!~"dm-.+|md.+", same idea as LVM. Panels keep using $device, so Total Performance stops double-counting. Used md.+ (not md[0-9].+) so names like md0 match.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 $device template variable query (in addition to existing dm-* exclusion) to prevent RAID array + member disk double aggregation.
  • Apply the same exclusion to both the variable definition and query fields for consistency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.02%. Comparing base (31318c7) to head (6ca55f5).
⚠️ Report is 64 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5675      +/-   ##
==========================================
- Coverage   43.59%   37.02%   -6.57%     
==========================================
  Files         415      215     -200     
  Lines       43134     7160   -35974     
  Branches        0      585     +585     
==========================================
- Hits        18804     2651   -16153     
+ Misses      22454     4314   -18140     
+ Partials     1876      195    -1681     
Flag Coverage Δ
admin 34.94% <ø> (+0.15%) ⬆️
agent ?
managed ?
unittests 41.29% <ø> (?)
vmproxy ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mattiasimonato
mattiasimonato marked this pull request as ready for review July 21, 2026 10:16
@mattiasimonato
mattiasimonato requested review from a team and Nailya as code owners July 21, 2026 10:16
@mattiasimonato
mattiasimonato requested review from fabio-silva and matejkubinec and removed request for a team July 21, 2026 10:16
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.

4 participants