Skip to content

Commit

Permalink
Merge pull request #4166 from prometheus/superq/fix_build_info
Browse files Browse the repository at this point in the history
Fix build info metric
  • Loading branch information
SuperQ authored Dec 18, 2024
2 parents 0d28327 + ef79cbd commit 740fb8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/alertmanager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"github.com/KimMachineGun/automemlimit/memlimit"
"github.com/alecthomas/kingpin/v2"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/model"
"github.com/prometheus/common/promslog"
Expand Down Expand Up @@ -116,7 +116,7 @@ func init() {
prometheus.MustRegister(configuredReceivers)
prometheus.MustRegister(configuredIntegrations)
prometheus.MustRegister(configuredInhibitionRules)
prometheus.MustRegister(collectors.NewBuildInfoCollector())
prometheus.MustRegister(versioncollector.NewCollector("alertmanager"))
}

func instrumentHandler(handlerName string, handler http.HandlerFunc) http.HandlerFunc {
Expand Down

0 comments on commit 740fb8b

Please sign in to comment.