Skip to content

Commit

Permalink
Adds buildDefinitionID to agentPoolBuildWait (#101)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Korsos <[email protected]>
  • Loading branch information
akorsos and Alex Korsos authored Sep 13, 2024
1 parent f1ea6e3 commit 274d1fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions metrics_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func (m *MetricsCollectorStats) Setup(collector *collector.Collector) {
[]string{
"agentPoolID",
"projectID",
"buildDefinitionID",
"result",
},
)
Expand Down Expand Up @@ -275,6 +276,7 @@ func (m *MetricsCollectorStats) CollectBuilds(ctx context.Context, logger *zap.S
m.prometheus.agentPoolBuildWait.With(prometheus.Labels{
"agentPoolID": int64ToString(build.Queue.Pool.Id),
"projectID": build.Project.Id,
"buildDefinitionID": int64ToString(build.Definition.Id),
"result": build.Result,
}).Observe(waitDuration)

Expand Down

0 comments on commit 274d1fe

Please sign in to comment.