Skip to content

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

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
huseyinbabal opened this issue Apr 17, 2025 · 1 comment · May be fixed by #4042
Open

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

huseyinbabal opened this issue Apr 17, 2025 · 1 comment · May be fixed by #4042
Labels
community Community contribution enhancement New feature or request needs triage Requires review from the maintainers

Comments

@huseyinbabal
Copy link

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.

@huseyinbabal huseyinbabal added community Community contribution enhancement New feature or request needs triage Requires review from the maintainers labels Apr 17, 2025
Copy link
Contributor

Hello! Thank you for filing an issue.

The maintainers will triage your issue shortly.

In the meantime, please take a look at the troubleshooting guide for bug reports.

If this is a feature request, please review our contribution guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Community contribution enhancement New feature or request needs triage Requires review from the maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant