Datadog PM2 check
A check for pm2 processes for DataDog
- Copy
/checks.d/pm2.py
to/etc/dd-agent/checks.d/pm2.py
andconf.d/pm2.yaml
to/etc/dd-agent/conf.d/pm2.yaml
. - Add the datadog agent user
dd-agent
to the sudoers (at least with permission to run sudo pm2 without a password). - If pm2 is running as a non-root user add
-u [usrname]
to the command inpm2.yaml
- Then restart Datadog agent:
/etc/init.d/datadog-agent restart