Skip to content

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

Open
@huseyinbabal

Description

@huseyinbabal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityCommunity contributionenhancementNew feature or requestneeds triageRequires review from the maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions