Use head_branch metric (#2549)

Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
Thang Le
2023-05-28 08:36:55 +01:00
committed by GitHub
parent 90ea691e72
commit e7ec736738
20 changed files with 54 additions and 49 deletions

View File

@@ -76,7 +76,7 @@ func metricLabels(extras ...string) []string {
}
var (
commonLabels = []string{"runs_on", "job_name", "organization", "repository", "repository_full_name", "owner", "workflow_name"}
commonLabels = []string{"runs_on", "job_name", "organization", "repository", "repository_full_name", "owner", "workflow_name", "head_branch"}
githubWorkflowJobQueueDurationSeconds = prometheus.NewHistogramVec(
prometheus.HistogramOpts{
Name: "github_workflow_job_queue_duration_seconds",