Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions pkg/actionsmetrics/event_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pkg/actionsmetrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
}

Expand Down
Loading