Skip to content

Commit 5916894

Browse files
committed
Fix observe for wrong metric
Wait time as counting for project build duration instead build wait
1 parent 4c2fe4f commit 5916894

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrics_stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (m *MetricsCollectorStats) CollectBuilds(ctx context.Context, callback chan
170170
"result": build.Result,
171171
}).Observe(waitDuration)
172172

173-
m.prometheus.projectBuildDuration.With(prometheus.Labels{
173+
m.prometheus.projectBuildWait.With(prometheus.Labels{
174174
"projectID": build.Project.Id,
175175
"buildDefinitionID": int64ToString(build.Definition.Id),
176176
"result": build.Result,

0 commit comments

Comments
 (0)