Skip to content

Add a gitlab_runner_jobs_total metric

Tomasz Maczukin requested to merge add-jobs-total-metric into master

What does this MR do?

Adds a gitlab_runner_jobs_total metric that tracks the total number of jobs started on a Runner.

Why was this MR needed?

Our current job-related metrics are gauges. They are good to show a current state of the process at a specified time, but because of gauge's behavior, they are susceptible to losing information in case of networking problems.

A gitlab_runner_jobs_total counter enables users to know how much jobs a Runner processed even if Prometheus had temporary problems with accessing the exporter.

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Edited by Kamil Trzciński

Merge request reports