sensu/sensu-community-plugins — pull request #107 by bethanybenzur (2012-11-21 23:02:10+00:00)
Title: cpu-usage-metrics plugin

Tested @portertech's CPU metric plugin by comparing the output to pidstat. I also added an option to specify a path to a PID file to get metrics for a single process. This option will pull the process name from /proc/$PID/stat and append it to the scheme:

```
# ./cpu-usage-metrics.sh -f /var/run/sensu/sensu-client.pid -s servers.$(hostname -s)
servers.my-webapp01.sensu-client.cpu.usage 0 1353538884
```