Skip to content

Commit 274d1fe

Browse files
akorsosAlex Korsos
and
Alex Korsos
authored
Adds buildDefinitionID to agentPoolBuildWait (#101)
Co-authored-by: Alex Korsos <alex.korsos@shield.ai>
1 parent f1ea6e3 commit 274d1fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

metrics_stats.go

+2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func (m *MetricsCollectorStats) Setup(collector *collector.Collector) {
5757
[]string{
5858
"agentPoolID",
5959
"projectID",
60+
"buildDefinitionID",
6061
"result",
6162
},
6263
)
@@ -275,6 +276,7 @@ func (m *MetricsCollectorStats) CollectBuilds(ctx context.Context, logger *zap.S
275276
m.prometheus.agentPoolBuildWait.With(prometheus.Labels{
276277
"agentPoolID": int64ToString(build.Queue.Pool.Id),
277278
"projectID": build.Project.Id,
279+
"buildDefinitionID": int64ToString(build.Definition.Id),
278280
"result": build.Result,
279281
}).Observe(waitDuration)
280282

0 commit comments

Comments
 (0)