Can we implement a metric to be published for the Run Id of each job?

Aperta
#3,668 4 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
github-actions, go, kubernetes, prometheus

Direzione di ricerca

Inizia tracciando le metriche Prometheus esistenti per i job e verificando come viene esposto job_workflow_ref in actions-runner-controller. Verifica se github.run_id è disponibile per i runner effimeri e di lunga durata, quindi definisci il completamento come la pubblicazione di un Run Id utilizzabile insieme a ogni metrica del job, senza alterare il comportamento esistente delle metriche.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

community enhancement needs triage
What would you like added?

A clear and concise description of what you want to happen.

Can we implement a metric to be published for the Run Id of each job?

I'm trying to setup some monitoring now with Prometheus and the metrics that are shared feel a little light. I'd like to ideally get the Run Id (github.run_id) so I can isolate which jobs are taking the longest to run and if that is specific to our github workflows or the application teams code bae.

The Run Id would help me narrow down the longer running workflows. I have the repository but no Run Id - so it is hard to review historical data (we have ephemeral runners and I believe this may be the reason run_id might not exist).

Why is this needed?

To help isolate Github Workflow runs against executions times and completely/incompleted jobs

Additional context

My assumption is this is possible as the job_workflow_ref is shared - however I can see potential limitations through Long Lived Runners vs Ephermal runners - hope this is not the case.

The GHA metrics shared by kenmuse are helpful however are feeling a little thin the more observability you want

Lingua principale
Go
Stelle
6.7k
Fork
1.5k
Merge medio
1h 34m
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di actions/actions-runner-controller

Tutte le issue di actions/actions-runner-controller

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.