Skip to content

expose job url in metrics

Shubham Gopale requested to merge shubhindia/gitlab-runner:expose_repo_url into main

What does this MR do?

It adds another field in gitlab_runner_jobs metric named joburl which is the url of the job being executed.

Why was this MR needed?

It gives better visibility at what job is currently being executed by the given runner.

What's the best way to test this MR?

Once the runner is running, do a curl request to metrics endpoint curl -s "http://localhost:9252/metrics" | grep -i 'gitlab_runner_job' It should return something like this Screenshot_2022-02-10_at_3.12.20_PM

What are the relevant issue numbers?

Edited by Shubham Gopale

Merge request reports