Skip to content

Commit

Permalink
chore: s/clientVersion/versioncollector/g
Browse files Browse the repository at this point in the history
Signed-off-by: TJ Hoplock <[email protected]>
  • Loading branch information
tjhop committed Nov 10, 2024
1 parent cee021a commit e0841f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"net/url"

"github.com/prometheus/client_golang/prometheus"
clientVersion "github.com/prometheus/client_golang/prometheus/collectors/version"
versioncollector "github.com/prometheus/client_golang/prometheus/collectors/version"
"github.com/prometheus/client_golang/prometheus/promhttp"
toolkitweb "github.com/prometheus/exporter-toolkit/web"

Expand All @@ -44,7 +44,7 @@ type Config struct {

// Serve serves the PromLens web UI and API.
func Serve(cfg *Config) error {
prometheus.MustRegister(clientVersion.NewCollector("promlens"))
prometheus.MustRegister(versioncollector.NewCollector("promlens"))
requestsTotal := prometheus.NewCounterVec(
prometheus.CounterOpts{
Name: "promlens_http_requests_total",
Expand Down

0 comments on commit e0841f6

Please sign in to comment.