mvisonneau / gitlab-ci-pipelines-exporter

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights
Apache License 2.0
1.29k stars 242 forks source link

gitlab_ci_pipeline_job_run_count is counted for old runner instead on new one #625

Open mklpanasiuk opened 1 year ago

mklpanasiuk commented 1 year ago

Steps to reproduce:

  1. Run pipeline job with RUNNER_1
  2. Run the same job with RUNNER_2 after the previous run

Actual result: gitlab_ci_pipeline_job_run_count has the label "runner_description"=RUNNER_1 for a while and then it changes to "runner_description"=RUNNER_2

Expected result: gitlab_ci_pipeline_job_run_count has the correct label at once. Please note: it works perfectly for gitlab_ci_pipeline_job_id.

I guess you did it intentionally to reduce the metrics count and to detect job runs as runner_description changes all the time

image