Add queue_size and queue_depth metrics

What does this MR do?

Add queue_size and queue_depth metrics

As described in Pass queue size to runner with job payload (gitlab-org/ci-cd/shared-runners/infrastructure#298 - closed), insight into what is the size of the jobs queue that potentially may be executed on a given runner is very limited. Not only it's very generalized and partitioned by three runner types, it's also available only for GitLab instance owners.

With Present queue_size and queue_depth in CI job pa... (gitlab!192572 - merged) we will get information about the queue size and queue search depth in the job payload.

Adds support for these values and exports them as a runner metric, making the information available for every runner owner.

Why was this MR needed?

What's the best way to test this MR?

What are the relevant issue numbers?

Merge request reports

Loading