mongodb-logs-pm2

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mongodb-logs-pm2

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.9 kB

Total Files

6

Last publish

Collaborators

  • sv.sunnysharma