diff --git a/main.go b/main.go index 28538c4..4e49a93 100644 --- a/main.go +++ b/main.go @@ -39,6 +39,7 @@ func main() { initArgparser() initLogger() parseArguments() + initSystem() logger.Infof("starting azure-devops-exporter v%s (%s; %s; by %v)", gitTag, gitCommit, runtime.Version(), Author) logger.Info(string(Opts.GetJson())) diff --git a/metrics_stats.go b/metrics_stats.go index 290d4a9..c4a50b4 100644 --- a/metrics_stats.go +++ b/metrics_stats.go @@ -274,10 +274,10 @@ func (m *MetricsCollectorStats) CollectBuilds(ctx context.Context, logger *zap.S if waitDuration >= 0 { m.prometheus.agentPoolBuildWait.With(prometheus.Labels{ - "agentPoolID": int64ToString(build.Queue.Pool.Id), - "projectID": build.Project.Id, + "agentPoolID": int64ToString(build.Queue.Pool.Id), + "projectID": build.Project.Id, "buildDefinitionID": int64ToString(build.Definition.Id), - "result": build.Result, + "result": build.Result, }).Observe(waitDuration) m.prometheus.projectBuildWait.With(prometheus.Labels{