From 269286e43cf5951203c8ff2aa41e858605c45631 Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Sat, 1 Jul 2023 15:12:37 +0100 Subject: [PATCH] Fix metrics path not using command-line argument value (#904) Signed-off-by: Hugo Hromic Signed-off-by: Stephan Windischmann --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 2cba0039..c28316f4 100644 --- a/main.go +++ b/main.go @@ -220,7 +220,7 @@ func main() { } }() - http.Handle("/metrics", promhttp.Handler()) // Normal metrics endpoint for SNMP exporter itself. + http.Handle(*metricsPath, promhttp.Handler()) // Normal metrics endpoint for SNMP exporter itself. // Endpoint to do SNMP scrapes. http.HandleFunc(proberPath, func(w http.ResponseWriter, r *http.Request) { handler(w, r, logger)