Add Prometheus Metric for In-Progress Workflow Job Duration #4041
Labels
community
Community contribution
enhancement
New feature or request
needs triage
Requires review from the maintainers
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
andgithub_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
, andhead_branch
.The text was updated successfully, but these errors were encountered: