From 949c5b50107a7b87c168b9cc5dd9d3d8c554f31e Mon Sep 17 00:00:00 2001 From: Yury Kovalev <8366110+kovayur@users.noreply.github.com> Date: Tue, 19 Mar 2024 09:02:16 +0100 Subject: [PATCH] Update probe/pkg/metrics/server.go Co-authored-by: Stephan Hesselmann --- probe/pkg/metrics/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probe/pkg/metrics/server.go b/probe/pkg/metrics/server.go index d8646e1ad1..17c5fb5848 100644 --- a/probe/pkg/metrics/server.go +++ b/probe/pkg/metrics/server.go @@ -30,7 +30,7 @@ func CloseMetricsServer(server *http.Server) { } } -func initPrometheus(customMetrics *Metrics, config config.Config) *prometheus.Registry { +func initPrometheus(customMetrics *Metrics, config *config.Config) *prometheus.Registry { registry := prometheus.NewRegistry() // Register default metrics to use a dedicated registry instead of prometheus.DefaultRegistry. // This makes it easier to isolate metric state when unit testing this package.