Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 830 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 830 Bytes

MongoDB Altas 🌏 - Enviroment Assessment

Get Colletion Stats

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 shell
    python3 getCollStats.py
    The output for this script is cluster-result.json
  • 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:

  1. Update the connection string from
  2. Update file postCollStats.sh to define connection string for MongoDB instance storing statistics data.
  3. Use MongoDB Compass or CLI to query and analyse the statistics data.