Add another CI Builds related metrics
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 withshared_runner_enabled
set totrue
, - number of builds in
pending
state, that are created for projects withshared_runner_enabled
set tofalse
,
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