get_collection_stats Get all statistics data from all collections.
- getCollStats.py - Loop through all defined cluster and database to get collection statistics data.
- postCollStats.sh - Shell script using mongoimport to import JSON output from getCollStats.py to an MongoDB collection for further analysis.
How to execute:
- Update file getCollStats.py to define list of connection string.
- Update file postCollStats.sh to define connection string for MongoDB instance storing statistics data.
- Use MongoDB Compass or CLI to query and analyse the statistics data.