Skip to content

Feat: ReplSet and Cluster data sizes#5416

Open
fabio-silva wants to merge 10 commits into
mainfrom
PMM-13306-mongo-data-size
Open

Feat: ReplSet and Cluster data sizes#5416
fabio-silva wants to merge 10 commits into
mainfrom
PMM-13306-mongo-data-size

Conversation

@fabio-silva

@fabio-silva fabio-silva commented May 25, 2026

Copy link
Copy Markdown
Contributor

PMM-13306

Using mongodb_dbstats_dataSize and mongodb_dbstats_indexSize to calculate metrics.
@igroene Please let us know if this sounds accurate or if there's a better way, as I'm no expert at this.

Screenshot 2026-05-25 at 17 28 50 Screenshot 2026-05-25 at 17 28 42

@codecov

codecov Bot commented May 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.50%. Comparing base (f8c05c8) to head (d5a1da1).

Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #5416      +/-   ##
==========================================
- Coverage   43.53%   43.50%   -0.03%     
==========================================
  Files         413      543     +130     
  Lines       42943    45115    +2172     
  Branches        0      590     +590     
==========================================
+ Hits        18694    19626     +932     
- Misses      22376    23552    +1176     
- Partials     1873     1937      +64     
Flag Coverage Δ
admin 34.78% <ø> (ø)
unittests 41.31% <ø> (?)

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.

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

Adds “Total Data Size” visibility to MongoDB ReplSet and Cluster Summary dashboards (and corresponding docs) by calculating total logical size from MongoDB exporter dbstats metrics.

Changes:

  • Add new “Total Data Size” stat panel and “Data Size Over Time” timeseries panel to ReplSet Summary.
  • Add new “Total Data Size” stat panel and “Data Size Over Time” timeseries panel to Cluster Summary.
  • Document the new panels and their dependency on enabling the exporter dbstats collector.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 9 comments.

File Description
documentation/docs/reference/dashboards/dashboard-mongodb-replset-summary.md Documents new ReplSet “Total Data Size” panel and requirements.
documentation/docs/reference/dashboards/dashboard-mongodb-cluster-summary.md Documents new Cluster “Total Data Size” panel and requirements.
dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Adds new data size panels; adjusts layout; updates rs_nm templating behavior and some dashboard links.
dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Adds new data size panels; adjusts layout; updates some dashboard links.

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

Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json
@fabio-silva fabio-silva requested a review from a team as a code owner May 25, 2026 16:42

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

"step": 300
}
],
"title": "Total Data Size",

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.

@catalinaadam I think we should be using Sentence case here (and other places legends/panel titles/etc.) right?

@fabio-silva fabio-silva May 26, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I just checked and both dashboards use Title Case in their panels, e.g.:

  • Memory Used
  • Disk Space Utilization
  • Oplog Recovery Window
  • Oplog Processing Time
  • ...

Same happens in other dashboards across Mongo, MySQL and PG

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.

I think at the moment yes, but I think we wanted to move more into using Sentence case if I remember (there's a google doc with some recomendations)

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.

@matejkubinec, indeed sentence case is the standard we want to move to. However, changing just these two panels while all other panels on these dashboards still use title case would create inconsistency within the same dashboard. Can we standardize capitalization across all panels as part of PMM-14999?

@catalinaadam catalinaadam 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.

Added release notes with dd85f68

Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated
"step": 300
}
],
"title": "Total Data Size",

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.

@matejkubinec, indeed sentence case is the standard we want to move to. However, changing just these two panels while all other panels on these dashboards still use title case would create inconsistency within the same dashboard. Can we standardize capitalization across all panels as part of PMM-14999?

Comment thread dashboards/dashboards/MongoDB/MongoDB_Cluster_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread dashboards/dashboards/MongoDB/MongoDB_ReplSet_Summary.json Outdated
Comment thread documentation/docs/reference/dashboards/dashboard-mongodb-cluster-summary.md Outdated
Comment thread documentation/docs/reference/dashboards/dashboard-mongodb-replset-summary.md Outdated
fabio-silva and others added 3 commits June 16, 2026 10:28
Co-authored-by: Catalina A <94133018+catalinaadam@users.noreply.github.com>
Co-authored-by: Catalina A <94133018+catalinaadam@users.noreply.github.com>
Co-authored-by: Catalina A <94133018+catalinaadam@users.noreply.github.com>
fabio-silva and others added 2 commits June 16, 2026 10:29
…set-summary.md

Co-authored-by: Catalina A <94133018+catalinaadam@users.noreply.github.com>
@ademidoff ademidoff temporarily deployed to PMM-13306-mongo-data-size - pmm-doc-3 PR #5416 June 16, 2026 09:34 — with Render Destroyed
…ter-summary.md

Co-authored-by: Catalina A <94133018+catalinaadam@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants