Skip to content

Conversation

huseyinbabal
Copy link

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_seconds as a prometheus.CounterVec with 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Prometheus Metric for In-Progress Workflow Job Duration
1 participant