Keyhole with --allinfo
flag collects cluster and storage information:
- Sharded cluster
- Replica set
- Standalone
keyhole --allinfo [--redact] <connection_string>
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 redact the sample document collected by Keyhole. For example:
keyhole --allinfo -redact mongodb://...