It would be nice to report a few more metrics to statsd. The jenkins-to-graphite python script at https://github.com/katzj/jenkins-to-graphite is meant to run via a cronjob, it poll the Jenkins API to report:
- the queue size
- builds started last minute / hour (could be done via a Statsd gauge)
- executors (total, busy, free)
- nodes (total, offline, online)
It can optionally log metrics on a per label basis if passed via --labels, would be nice to even support any label. The metrics for them are:
- number of tied jobs
- number of nodes having the label
- number of executors (total, busy free)
Another option is reporting metrics on a per view based (same as labels, its optional and view names are to be passed via --jobs). For each view it would report:
-
of jobs in ok (blue), fail (red), warning (yellow) state
- total # of jobs in the view
Not sure how easy it is to query those data with the Java internal API. But would definitely be nice to have :-]
It would be nice to report a few more metrics to statsd. The jenkins-to-graphite python script at https://github.com/katzj/jenkins-to-graphite is meant to run via a cronjob, it poll the Jenkins API to report:
It can optionally log metrics on a per label basis if passed via --labels, would be nice to even support any label. The metrics for them are:
Another option is reporting metrics on a per view based (same as labels, its optional and view names are to be passed via --jobs). For each view it would report:
of jobs in ok (blue), fail (red), warning (yellow) state
Not sure how easy it is to query those data with the Java internal API. But would definitely be nice to have :-]