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)