Skip to content

Gauge metrics missing repository and enterprise label values #4304

@jgutierrezglez

Description

@jgutierrezglez

Description

I’ve noticed that all gauges metric are not populating the repository and enterprise label

In contrast, the gha_started_jobs_total and gha_completed_jobs_total counters do populate the repository label as expected. This inconsistency makes it hard to correlate job lifecycle metrics with current runner state.

  • gha_running_jobs labels: [name, namespace, repository, organization, enterprise]
  • Actual populated fields: name, namespace, and organization repository and enterprise remain empty (e.g., repository="", enterprise="")

Expected behavior:

The repository label should be populated for jobs running from repository-level runners, similar to how it appears in gha_started_jobs_total.

Request / question

Can you confirm whether this is the expected behavior is a bug/limitation in how repository context is passed to gauges?
If expected, is there a recommended configuration or update that would allow repository-level context to appear in the guages metric?

Regards,

Javier G.

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityCommunity contributionenhancementNew feature or requestneeds triageRequires review from the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions