1.0.0 • Published 5 years ago

mongodb-logs-pm2 v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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 to none) used for mongodb connection
  • refresh_rate (Defaults to 5000 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