diff --git a/pkg/actionsmetrics/event_reader.go b/pkg/actionsmetrics/event_reader.go index f6f5b5902a..3800052975 100644 --- a/pkg/actionsmetrics/event_reader.go +++ b/pkg/actionsmetrics/event_reader.go @@ -216,9 +216,7 @@ func (reader *EventReader) ProcessWorkflowJobEvent(ctx context.Context, event in if *e.WorkflowJob.Conclusion == "success" && repoName == "client" { for _, step := range e.WorkflowJob.Steps { stepLabels := extraLabel("step_name", *step.Name, labels) - stepLabels["step_number"] = fmt.Sprint(step.Number) stepLabels["step_conclusion"] = *step.Conclusion - stepLabels["step_status"] = *step.Status stepDuration := step.CompletedAt.Sub(step.StartedAt.Time) diff --git a/pkg/actionsmetrics/metrics.go b/pkg/actionsmetrics/metrics.go index c31cf4c3ae..6e0acc680d 100644 --- a/pkg/actionsmetrics/metrics.go +++ b/pkg/actionsmetrics/metrics.go @@ -154,7 +154,7 @@ func initGithubWorkflowJobStepDurationSeconds(buckets []float64) *prometheus.His Help: "Run times for the steps in workflow jobs in seconds", Buckets: buckets, }, - metricLabels("step_name", "step_number", "step_conclusion", "step_status"), + metricLabels("step_name", "step_conclusion"), ) }