Add a gitlab_runner_jobs_total metric
What does this MR do?
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.
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