Some metrics about gitlab ci jobs are not available in the /metrics endpoint

Good morning!

Problem to solve

I’m trying to get metrics about CI jobs and runners in my prometheus instance, but some metrics described in the docs are simply not available, for example even with a running pipeline and jobs in progress, the metric gitlab_ci_active_jobs is never available, I pulled the /metrics endpoint every 5 seconds after starting a pipeline to double check.

Am I missing something?

Thank you!

Steps to reproduce

  • curl …/-/metrics?token=xyz | grep gitlab_ci

Configuration

  • The prometheus feature is switched on. The /metrics endpoint is otherwise working, I get tons of other metrics.

Versions

Please select whether options apply, and add the version information.

  • Self-managed
  • GitLab.com SaaS
  • Dedicated

Versions

  • Currently running gitlab version v17.5.1-ee
1 Like