Add more labels to job_duration metric
What does this MR do and why?
Describe in detail what your merge request does and why.
Add more labels to job_duration
metric. Add target_env
, target_stage
, job_id
and short_job_name
labels.
- The
target_env
andtarget_stage
labels have to be extracted from the job name. -
short_job_name
is the job name without the environment name in it. - Not all jobs have environment name in the job name, so the
target_env
andtarget_stage
labels need to allow empty values.
gitlab-com/gl-infra/delivery#2891 (closed)
Author Check-list
-
Has documentation been updated?
Edited by Reuben Pereira