Keyhole with --allinfo flag collects cluster and storage information:
- Sharded cluster
- Replica set
- Standalone
keyhole --allinfo <connection_string> [--obfuscate]With --allinfo, it collects cluster stats and output to a gzipped BSON file. You can use Maobi to generate a report. For example:
keyhole --allinfo "mongodb://..."For a sharded cluster, Keyhole collects chunks information to create Shard Distribution information. Note that, with thousands of chunks, collecting chunk sizes is a time consuming process.
To avoid leaking PII and PHI information, you can obfuscate the sample document collected by Keyhole. For example:
keyhole --allinfo "mongodb://..." --obfuscateNote: The --redact flag is also supported and functions identically to --obfuscate.
Note: The connection string must immediately follow --allinfo, or use = syntax:
keyhole --allinfo="mongodb://..." --obfuscate