监视mongodb查询的命令行工具
mongoprof的Python项目详细描述
[mongodb](http://mongodb.org)的日志观察程序
安装
只要python setup.py install
用法
./mongoprof [--host hostname] [--slowms ms] dbname
监视到位于hostname的dbdbname的连接。
–host是一个可选参数,默认为localhost(推荐)
如果包含slowms,则日志级别将设置为仅比ms毫秒慢的日志查询。
示例输出:
啊![](https://raw.githubusercontent.com/jamesturk/mongoprof/master/example.png)