From e0841f667840a5d2c8a431e298c3fda3b05bd3ed Mon Sep 17 00:00:00 2001 From: TJ Hoplock Date: Sun, 10 Nov 2024 08:39:41 -0500 Subject: [PATCH] chore: s/clientVersion/versioncollector/g Signed-off-by: TJ Hoplock --- pkg/web/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/web/web.go b/pkg/web/web.go index b81058e..ef6ca8f 100644 --- a/pkg/web/web.go +++ b/pkg/web/web.go @@ -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" @@ -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",