Skip to content

feat(support-bundle): collect MongoDB per-collection sizes in infra and edge bundles#35

Open
pavansokkenagaraj wants to merge 1 commit into
mainfrom
feat/mongo-collection-sizes
Open

feat(support-bundle): collect MongoDB per-collection sizes in infra and edge bundles#35
pavansokkenagaraj wants to merge 1 commit into
mainfrom
feat/mongo-collection-sizes

Conversation

@pavansokkenagaraj

@pavansokkenagaraj pavansokkenagaraj commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What

Adds per-database and per-collection storage/data sizes (MB) and document counts to both the infra and edge support bundles, written to mongo/db-collection-sizes.txt.

Why

The bundle already captures replica-set status, config, and replication info — but nothing about what is consuming MongoDB disk. When a self-hosted Palette cluster hits storage pressure, the recurring triage question is which collection is bloated (component events, audits, metrics, cluster summaries, etc.). This collector answers it directly from the bundle.

Follow-up to #34 (per-pod df); motivated by SCS-4625 / SUS-1801.

Changes

  • support-bundle-infra.sh / support-bundle-edge.shmongo-status(): listDatabases + db.stats() / collection.stats()mongo/db-collection-sizes.txt
  • README-infra.md, README-edge.md — document the new file

Notes

🤖 Generated with Claude Code

@pavansokkenagaraj pavansokkenagaraj requested a review from a team as a code owner July 1, 2026 15:23
rrpolanco
rrpolanco previously approved these changes Jul 1, 2026
…nd edge bundles

Add per-database and per-collection storage/data sizes and document counts
(mongo/db-collection-sizes.txt) to both the infra and edge support bundles,
via listDatabases + db.stats()/collection.stats(). This surfaces WHICH
collections consume disk (events, audits, metrics, cluster summaries, etc.),
the recurring "what is eating MongoDB storage" triage question.

Follow-up to the per-pod df collection; motivated by SCS-4625 / SUS-1801.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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