Get all statistics data from all collections.
- getCollStats.py - Loop through all defined clusters and databases to get collection statistics data.
Please run this on the shellThe output for this script is cluster-result.jsonpython3 getCollStats.py
- postCollStats.sh - Shell script using mongoimport to import JSON output from getCollStats.py to an MongoDB collection for further analysis.
How to run the script:
- Update the connection string from
- 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.