mongodb-logs-pm2
v1.0.0
Published
mongodb connection matrix
Downloads
2
Readme
Description
PM2 module to automatically monitor vital signs of your mongodb :
- Queries, input, updates, deletes
- Number of connections
- Used memory space
- Network speed (input and output)
- Repl name and status
mongodb-logs-pm2
Install
$ npm install pm2 -g
$ pm2 install mongodb-logs-pm2
Configuration
NODE : User should have access to admin
database to query statistics (see mongo doc)
mongodb_url
(Defaults tonone
) used for mongodb connectionrefresh_rate
(Defaults to5000
in ms): Control the refresh rate of the worker
How to set these values ?
After having installed the module you have to type :
pm2 set mongodb-logs-pm2:
e.g:
pm2 set mongodb-logs-pm2:refresh_rate 5000
(every 5 seconds)pm2 set mongodb-logs-pm2:mongodb_url mongodb://localhost:27017
(ip of my mongodb server)
Uninstall
$ pm2 uninstall mongodb-logs-pm2
License
MIT