Skip to content

Difference between the job being created and starting #202

Closed

Description

@apj0nes

Hey @cpanato ,
We have multiple runner groups and would like to visualise how long it is taking for a job to be picked up by a runner in a runner group i.e. difference between the job being created and starting. We would like to compare how long on average it is taking for a runner-groups to pick up and begin executing the workflow jobs.
Is this something that could be achieved with the current implementation? I have deployed the exporter but it is not clear to me from the code and the exported metrics if they are relevant to my use case.
I would appreciate your advice and if changes need to be made to the code base, I would be happy to contribute.
Thanks

Activity

  1. cpanato commented on Jun 4, 2024

    @cpanato
    Owner

    i think we are not capturing the queue part right now (see https://github.com/cpanato/github_actions_exporter/blob/main/internal/server/workflow_metrics_exporter.go#L115 if i am not wrong)

    if you want to add that to start capture will be nice

  2. cpanato commented on Jun 4, 2024

    @cpanato
    Owner

    thanks for the issue!

  3. added
    enhancement
    help wanted
    on Jun 4, 2024
  4. cpanato commented on Oct 9, 2026

    @cpanato
    Owner

    This is already covered by the exporter since #225: the time between a job being queued and starting is recorded in the workflow_job_duration_seconds histogram with state="queued", labelled by runner_group (plus org, repo, branch, workflow_name and job_name).

    Average pickup time per runner group:

    sum by (runner_group) (rate(workflow_job_duration_seconds_sum{state="queued"}[5m]))
    /
    sum by (runner_group) (rate(workflow_job_duration_seconds_count{state="queued"}[5m]))
    

    For percentiles use histogram_quantile(0.95, sum by (le, runner_group) (rate(workflow_job_duration_seconds_bucket{state="queued"}[5m]))).

    Closing as answered, feel free to reopen if this does not fit your use case.

  5. added
    question
    documentation
    and removed
    help wanted
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationenhancementquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions