Description
What would you like added?
Add a Prometheus metric github_workflow_job_in_progress_duration_seconds
to track the in-progress duration of workflow jobs in seconds. This metric will help monitor and analyze the time taken by jobs that are currently running.
Note: Feature requests to integrate vendor-specific cloud tools (e.g. awscli
, gcloud-sdk
, azure-cli
) will likely be rejected as the Runner image aims to be vendor agnostic.
Why is this needed?
This metric is needed to provide better visibility into the duration of workflow jobs that are still in progress. It complements existing metrics like github_workflow_job_run_duration_seconds
and github_workflow_job_queue_duration_seconds
by focusing on jobs that have not yet completed. This can help identify bottlenecks or performance issues in real-time.
Additional context
The metric has been implemented as a prometheus.CounterVec
with the following labels: runs_on
, job_name
, organization
, repository
, repository_full_name
, owner
, workflow_name
, and head_branch
.