Gitlab-runner metrics mismatch

Hello everyone,

We are starting to monitor our runners, and have enabled the metrics server with the listen_address directive.

Most of them seem to be okay and synced, but the gitlab_runner_jobs_total metric does not seem to be reflecting the truth.

Going to our group settings, CI/CD settings, runners, those display way more jobs than the metrics endpoint, and it better reflects the observations we have been making regarding runner usage, etc.

Maybe that endpoint doesn’t show the total number of jobs, but the different types of jobs?
Like, would it count “test_this_backend” as one job regardless of how many times it has been run?

That’s the only reason I can find that makes some sense, but I haven’t seen it documented nor asked in another forum topic.

Thanks for your time!