Skip to content

hendritjipto/mongodb-script

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 87.0%
  • Shell 13.0%