actions-runner-controller/cmd
Prateek Kumar 843e13247d Expose gha_available_jobs and gha_acquired_jobs listener metrics
The RunnerScaleSetStatistic struct from the scaleset package provides
TotalAvailableJobs and TotalAcquiredJobs fields, but these were not
being exposed as Prometheus metrics by the listener. This leaves
operators without visibility into the job queue depth for their
scale sets.

Add two new gauge metrics to the ghalistener metrics exporter:
- gha_available_jobs: jobs with matching runs-on labels waiting to be
  acquired by the scale set
- gha_acquired_jobs: jobs acquired by the scale set but not yet
  assigned to a runner

These metrics complete the exposure of all RunnerScaleSetStatistic
fields and were originally proposed in the metrics ADR
(2023-05-08-exposing-metrics.md) but never implemented.

Made-with: Cursor
2026-04-01 00:22:23 -04:00
..
actionsmetricsserver Changes to folder structure to allow multigroups and changed go mod name (#2105) 2022-12-28 09:38:34 +09:00
ghalistener Expose gha_available_jobs and gha_acquired_jobs listener metrics 2026-04-01 00:22:23 -04:00
githubwebhookserver Bump go version and all direct dependencies to newest for k8s compatibility (#2947) 2023-11-14 16:19:43 +01:00
sleep Allow custom graceful termination and loadBalancerSourceRanges for the githubwebhook service (#2305) 2023-02-25 14:18:29 +09:00