Skip to content

Commit

Permalink
Double-books the HTTP metrics w/ and w/o the "consul" prefix.
Browse files Browse the repository at this point in the history
Fixes #3654
  • Loading branch information
slackpad committed Nov 8, 2017
1 parent c6c7b8f commit 099b143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion agent/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 099b143

Please sign in to comment.