Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple web interface (server) to monitor MongoDB activity and create set of standard plots (a la awstat)
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
mongo_monitor.py

README

The mongo_monitor helps developers/admins to monitor MongoDB activity
via web interface. The idea is insipred by awstat, mongostat, protovis tools. 
All interface is written in Python and depends on python, pymongo driver, 
CherryPy (python web framework) and protovis (http://vis.stanford.edu/protovis/) 
JavaScript graphics library.

INSTALLATION:
------------

Install CherryPy on your system. Download mongo_monitor.py python script, 
make it executable, e.g. chmod +x mongo_monitor.py. Download protovis library 
and place it into the same directory as mongo_monitor.py or
define JSPATH in your environment pointing to location of protovis library, e.g. 
export JSPATH=/path/protovis-3.2

LICENSE:
--------
The tool is licensed under GPL license.

USAGE:
-----
This step is very simple, just run ./mongo_monitor.py
You can provide optional --uri parameter to specify the location of your MongoDB. For
more options see ./mongo_monitor.py --help

Please note, the tool will create mongodb.stats collection in your MongoDB and
will accumulate statistics over there (we suppose you will run this tool
for some time). The statistics information is generated by 
db.command( { "serverStatus" : 1 } ). The data will be
plotted on web UI by protovis library.
Something went wrong with that request. Please try again.