pm2-server-monit
Advanced tools
Weekly downloads
Readme
PM2 module to automatically monitor vital signs of your server :
pm2 install pm2-server-monit
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
:warning: :warning: :warning:
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.
:warning: :warning: :warning:
pm2 uninstall pm2-server-monit
pm2 module:update pm2-server-monit
FAQs
Rack to monitor a server
The npm package pm2-server-monit receives a total of 615 weekly downloads. As such, pm2-server-monit popularity was classified as not popular.
We found that pm2-server-monit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.