actions-runner-controller
actions-runner-controller copied to clipboard
Add Prometheus Metric for In-Progress Workflow Job Duration
This PR introduces a new Prometheus metric, github_workflow_job_in_progress_duration_seconds, to track the in-progress duration of workflow jobs in seconds. This metric provides real-time visibility into the duration of jobs that are currently running, complementing existing metrics like github_workflow_job_run_duration_seconds and github_workflow_job_queue_duration_seconds.
Changes:
- Added
github_workflow_job_in_progress_duration_secondsas aprometheus.CounterVecwith the following labels:-
runs_on -
job_name -
organization -
repository -
repository_full_name -
owner -
workflow_name -
head_branch
-
- Registered the new metric in the
metrics.Registry.
Additional Context:
- The metric uses the same label structure as other workflow job metrics for consistency.
Fixes #4041