Giter Site home page Giter Site logo

keymetrics / pm2-server-monit Goto Github PK

View Code? Open in Web Editor NEW
260.0 13.0 39.0 199 KB

Monitor server CPU / Memory / Process / Zombie Process / Disk size / Security Packages / Network Input / Network Output

Home Page: https://keymetrics.io/

License: MIT License

JavaScript 98.02% Jsonnet 1.98%
pm2-server-monit cpu monitor keymetrics pm2 module memory alert monit stats

pm2-server-monit's Introduction

Description

PM2 module to automatically monitor vital signs of your server :

  • CPU average usage
  • Free and used drive space
  • Free and used memory space
  • All processes running
  • TTY/SSH opened
  • Total opened files
  • Network speed (input and output)

pm2-server-monit

Install

pm2 install pm2-server-monit

Configuration

Default settings:

  • drive is the name of the drive you want to monitor, you can monitor multiples at the same time by adding a , between names (example: /,/data to monitor both / and /data assuming they are two different partition). Default is /
  • disk_refresh_rate the rate of refresh for the metrics related to disk in seconds (default to 60)
  • memory_refresh_rate the rate of refresh for metrics related to memory in seconds (default to 2)
  • cpu_refresh_rate the rate of refresh for metrics related to cpu usage in seconds (default to 2)
  • network_refresh_rate the rate of refresh for metrics related to network bandwitdh in seconds (default to 5)

To modify the config values you can use PM2 Plus dashboard or the following commands:

pm2 set pm2-server-monit:drive /
pm2 set pm2-server-monit:network_refresh_rate 10

Info

⚠️ ⚠️ ⚠️

If this module uses too much CPU, increase all the refresh rate to higher values

If you have metrics that doesn't appear, it means that is not supported on your platform. Also always check the logs with pm2 logs pm2-server-monit for errors.

⚠️ ⚠️ ⚠️

Uninstall

pm2 uninstall pm2-server-monit

Update to latest version

pm2 module:update pm2-server-monit

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.