Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pm2-mongodb

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pm2-mongodb

PM2 MongoDB Module

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-81.63%
Maintainers
2
Weekly downloads
 
Created
Source

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

pm2-mongodb

Install

$ npm install pm2 -g

$ pm2 install pm2-mongodb

Configuration

NODE : User should have access to admin database to query statistics (see mongo doc)

  • ip (Defaults to 127.0.0.1) IP of mongodb server
  • port (Defaults to 27017) Port of mongodb server
  • username (Defaults to none) used for authentication
  • password (Defaults to none) used for authentication
  • authDB (Defaults to none) used for authentication
  • 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 pm2-mongodb:

e.g:

  • pm2 set pm2-mongodb:refresh_rate 5000 (every 5 seconds)
  • pm2 set pm2-mongodb:ip 42.42.42.42 (ip of my mongodb server)
  • pm2 set pm2-mongodb:password "bestpasswd" (the password will be used to connect to mongo)

Uninstall

$ pm2 uninstall pm2-mongodb

License

MIT

FAQs

Package last updated on 03 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc