feat(support-bundle): collect MongoDB per-collection sizes in infra and edge bundles#35
Open
pavansokkenagaraj wants to merge 1 commit into
Open
feat(support-bundle): collect MongoDB per-collection sizes in infra and edge bundles#35pavansokkenagaraj wants to merge 1 commit into
pavansokkenagaraj wants to merge 1 commit into
Conversation
brathina-spectro
previously approved these changes
Jul 1, 2026
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>
81527ca
f056b68 to
81527ca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.sh—mongo-status():listDatabases+db.stats()/collection.stats()→mongo/db-collection-sizes.txtREADME-infra.md,README-edge.md— document the new fileNotes
$MONGO_POD/$MONGO_CMD/$MONGO_AUTHand the samebash -c "… --eval '…'"pattern as the existing collectors.bash -npasses on both scripts.🤖 Generated with Claude Code