1.0.0 • Published 7 years ago
mongodb-logs-pm2 v1.0.0
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-pm2Configuration
NODE : User should have access to admin database to query statistics (see mongo doc)
mongodb_url(Defaults tonone) used for mongodb connectionrefresh_rate(Defaults to5000in 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-pm2License
MIT
1.0.0
7 years ago