Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <mblaschke82@gmail.com>
  • Loading branch information
mblaschke committed Sep 14, 2024
1 parent 9bb9ac3 commit 35b3dfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down
6 changes: 3 additions & 3 deletions metrics_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 35b3dfd

Please sign in to comment.