feat: add job_duration_total metric
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do?
Adds a job_duration_total metric.
Why was this MR needed?
We would like to be able to see the total time spent on CI over a period of time in Prometheus.
What's the best way to test this MR?
Spin up the gitlab_runner and make sure the new metric makes sense as published.
What are the relevant issue numbers?
Edited by Nick Palmer