Datadog PM2 check
A check for pm2 processes for DataDog
- Copy
/checks.d/pm2.pyto/etc/dd-agent/checks.d/pm2.pyandconf.d/pm2.yamlto/etc/dd-agent/conf.d/pm2.yaml. - Add the datadog agent user
dd-agentto 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