sensu-server-metrics
Sensu metric check is a metrics check written in nodejs that gathers server performance indicators
Prerequisites
-
As this check is written in NodeJS, Node 6+ has to be installed on the system running it.
-
The check was initialy written to store data in InfluxDB. Therefore it outputs metrics on
stdin
and needs an appropriate handler. I have written one in Node that is available as a Gist.
Installation
In your Sensu plugins directory run:
npm install sensu-server-metrics
Add defaultIface
if you want to get stats about your network rx & tx and services
(as a list of comma seperated system service names) to get their CPU & RAM usage.
Exemple:
Finally add the check to your checks file:
Metrics
The check gathers the following metrics:
- given system services CPU and RAM usage (in %)
- cpu load (in %)
- RAM usage (in %)
- SWAP usage (in %)
- disk IOPS (read, write, total)
- network rx & tx
- fs usage (in %)