Skip to content

Add another CI Builds related metrics

Tomasz Maczukin requested to merge feature/additional-ci-builds-metrics into master

This MR adds some CI Builds metrics:

  • number of builds in running state, that were not updated since more than last hour,
  • number of builds in pending state, that are created for projects with shared_runner_enabled set to true,
  • number of builds in pending state, that are created for projects with shared_runner_enabled set to false,
ci_builds_stale{status="running",when="last_hour"} 2
ci_builds_total{status="pending",shared_runners_enabled_projects="1"} 5
ci_builds_total{status="pending",shared_runners_enabled_projects="0"} 2

MR is prepared on top of !27 (merged).

Related to gitlab-org/gitlab-ce#23366.

/cc @ayufan @ahmadsherif

Merge request reports