2014-02-14 15:23:46 +00:00
|
|
|
mongoprof
|
|
|
|
=========
|
2012-06-25 19:34:19 +00:00
|
|
|
|
2014-02-14 15:24:25 +00:00
|
|
|
Log watcher for [MongoDB](http://mongodb.org)
|
2012-06-25 19:34:19 +00:00
|
|
|
|
2014-02-14 15:27:11 +00:00
|
|
|
Installation
|
|
|
|
------------
|
|
|
|
|
|
|
|
Just ``python setup.py install``
|
|
|
|
|
|
|
|
|
2014-02-14 15:21:27 +00:00
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
2014-02-14 15:27:11 +00:00
|
|
|
|
2014-02-14 15:24:25 +00:00
|
|
|
``./mongoprof [--host hostname] [--slowms ms] dbname``
|
2014-02-14 15:21:27 +00:00
|
|
|
|
|
|
|
|
2014-02-14 15:24:25 +00:00
|
|
|
Monitors connections to DB ``dbname`` at ``hostname``.
|
2014-02-14 15:21:27 +00:00
|
|
|
|
2014-02-14 15:24:25 +00:00
|
|
|
--host is an optional parameter, defaults to localhost (recommended)
|
|
|
|
|
|
|
|
If slowms is included the log level will be set to only log queries slower than ``ms`` milliseconds.
|
2014-02-14 15:23:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
Example Output:
|
2014-02-14 15:21:27 +00:00
|
|
|
|
2015-06-16 21:29:55 +00:00
|
|
|
![](https://raw.githubusercontent.com/jamesturk/mongoprof/master/example.png)
|
2014-02-14 15:21:27 +00:00
|
|
|
|