Skip to content

Add Prometheus Metric for In-Progress Workflow Job Duration #4042

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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