From 60370657fca75e1c3dd92253d3c56ef0432dadce Mon Sep 17 00:00:00 2001 From: Felix Hassert Date: Thu, 13 Jun 2019 09:47:59 +0200 Subject: [PATCH] Fix prometheus/golang_client usage (#45) --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 7c55c21..72abfd2 100644 --- a/main.go +++ b/main.go @@ -176,7 +176,7 @@ func main() { http.Handle(StartParams.Path, handler) } else { prometheus.MustRegister(PrometheusExporter) - http.Handle(StartParams.Path, prometheus.Handler()) + http.Handle(StartParams.Path, promhttp.Handler()) } if StartParams.Path != "/" {