Skip to content

metrics for nodes / queue / builds #5

@hashar

Description

@hashar

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 :-]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions