diff --git a/pkg/actionsmetrics/event_reader.go b/pkg/actionsmetrics/event_reader.go index a1b7e2f40e..1e0ed0f0cb 100644 --- a/pkg/actionsmetrics/event_reader.go +++ b/pkg/actionsmetrics/event_reader.go @@ -75,10 +75,6 @@ func (reader *EventReader) ProcessWorkflowJobEvent(ctx context.Context, event in labels["repository"] = *n keysAndValues = append(keysAndValues, "repository", *n) } - if n := e.Repo.FullName; n != nil { - labels["repository_full_name"] = *n - keysAndValues = append(keysAndValues, "repository_full_name", *n) - } if e.Repo.Owner != nil { if l := e.Repo.Owner.Login; l != nil { @@ -98,19 +94,13 @@ func (reader *EventReader) ProcessWorkflowJobEvent(ctx context.Context, event in labels["organization"] = org var wn string - var hb string if e.WorkflowJob != nil { if n := e.WorkflowJob.WorkflowName; n != nil { wn = *n keysAndValues = append(keysAndValues, "workflow_name", *n) } - if n := e.WorkflowJob.HeadBranch; n != nil { - hb = *n - keysAndValues = append(keysAndValues, "head_branch", *n) - } } labels["workflow_name"] = wn - labels["head_branch"] = hb log := reader.Log.WithValues(keysAndValues...) diff --git a/pkg/actionsmetrics/metrics.go b/pkg/actionsmetrics/metrics.go index 877b905b81..6bccd3d51a 100644 --- a/pkg/actionsmetrics/metrics.go +++ b/pkg/actionsmetrics/metrics.go @@ -146,7 +146,7 @@ func initGithubWorkflowJobRunDurationSeconds(buckets []float64) *prometheus.Hist } var ( - commonLabels = []string{"runs_on", "job_name", "organization", "repository", "repository_full_name", "owner", "workflow_name", "head_branch"} + commonLabels = []string{"runs_on", "job_name", "organization", "repository", "owner", "workflow_name"} githubWorkflowJobQueueDurationSeconds *prometheus.HistogramVec githubWorkflowJobRunDurationSeconds *prometheus.HistogramVec githubWorkflowJobConclusionsTotal = prometheus.NewCounterVec(