From d9384936717692cbbf1a094a240f3022b3b291cb Mon Sep 17 00:00:00 2001 From: James Phillips Date: Tue, 7 Nov 2017 16:32:45 -0800 Subject: [PATCH] Double-books the HTTP metrics w/ and w/o the "consul" prefix. Fixes #3654 --- agent/http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agent/http.go b/agent/http.go index c34c3167c..a51e2c944 100644 --- a/agent/http.go +++ b/agent/http.go @@ -67,7 +67,8 @@ func (s *HTTPServer) handler(enableDebug bool) http.Handler { wrapper := func(resp http.ResponseWriter, req *http.Request) { start := time.Now() handler(resp, req) - key := append([]string{"consul", "http", req.Method}, parts...) + key := append([]string{"http", req.Method}, parts...) + metrics.MeasureSince(append([]string{"consul"}, key...), start) metrics.MeasureSince(key, start) } mux.HandleFunc(pattern, wrapper)