A cheap way to get build events from jenkins into graphite via statsd:
/usr/local/bin/buildstats
#!/bin/bash
. /etc/default/buildstats
echo "$BUILD_PREFIX.$JOB_NAME:1|c" | nc -w 1 -u $STATSD_SERVER $STATSD_PORT
/etc/default/buildstats:
#!/bin/bash
ROOT_PREFIX='jenkins'
BUILD_PREFIX="$ROOT_PREFIX.builds"
STATSD_SERVER=metrics.example.com
STATSD_PORT=8125
Then just add this command to your job:
buildstats