github_actions_exporter icon indicating copy to clipboard operation
github_actions_exporter copied to clipboard

Difference between the job being created and starting

Open apj0nes opened this issue 1 year ago • 2 comments

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

apj0nes avatar May 31 '24 13:05 apj0nes

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

cpanato avatar Jun 04 '24 07:06 cpanato

thanks for the issue!

cpanato avatar Jun 04 '24 07:06 cpanato