jenkinsci / datadog-plugin

A Jenkins plugin used to forward metrics, events, and service checks to an account at Datadog, automatically.
https://plugins.jenkins.io/datadog/
MIT License
30 stars 48 forks source link

Implement running jobs metric + update metrics code #407

Closed nikita-tkachenko-datadog closed 3 months ago

nikita-tkachenko-datadog commented 4 months ago

What does this PR do?

Adds new jenkins.job.currently_building metric which is a gauge of how many jobs are currently executing (the difference compared to existing "busy executors count" is that multiple executors can run parallel task from the same job).

Also some of the code that accumulates global counter metrics is refactored.

Description of the Change

Alternate Designs

Possible Drawbacks

Verification Process

Additional Notes

Release Notes

Review checklist (to be filled by reviewers)