Coder Social home page Coder Social logo

pm2-mongodb's Introduction

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

pm2-mongodb's People

Contributors

alavit-d avatar kenjones-cisco avatar lklepner avatar necromos avatar vmarchaud avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.