Skip to content

Commit

Permalink
Merge pull request #821 from google/prom
Browse files Browse the repository at this point in the history
chore: Change the callsite of the version collector.
  • Loading branch information
jaqx0r committed Mar 10, 2024
2 parents c2ec311 + 96fddde commit dcc826c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/mtail/mtail.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/collectors"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/version"
vc "github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/common/version"
"go.opencensus.io/zpages"
)

Expand Down Expand Up @@ -77,7 +78,7 @@ func (m *Server) initExporter() (err error) {
version.Version = m.buildInfo.Version
version.Revision = m.buildInfo.Revision
})
m.reg.MustRegister(version.NewCollector("mtail"))
m.reg.MustRegister(vc.NewCollector("mtail"))

return nil
}
Expand Down

0 comments on commit dcc826c

Please sign in to comment.