From 993a0cf5699b48f7adeacc49da098dcf5d5f46c9 Mon Sep 17 00:00:00 2001 From: tylerauerbeck Date: Wed, 25 Oct 2017 22:44:01 -0400 Subject: [PATCH] tools: update metrics to use promhttp Update function-tester/etcd-tester/main.go to use promhttp.Handler() instead of prometheus.Handler() --- tools/functional-tester/etcd-tester/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/functional-tester/etcd-tester/main.go b/tools/functional-tester/etcd-tester/main.go index 16d55bbfb..9c17e27ed 100644 --- a/tools/functional-tester/etcd-tester/main.go +++ b/tools/functional-tester/etcd-tester/main.go @@ -24,7 +24,7 @@ import ( "github.com/coreos/etcd/pkg/debugutil" "github.com/coreos/pkg/capnslog" - "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/promhttp" "golang.org/x/time/rate" ) @@ -138,7 +138,7 @@ func main() { sh := statusHandler{status: &t.status} http.Handle("/status", sh) - http.Handle("/metrics", prometheus.Handler()) + http.Handle("/metrics", promhttp.Handler()) if *enablePprof { for p, h := range debugutil.PProfHandlers() {