From db1bbeb89a72fa6e59805fe074a1c4af04474560 Mon Sep 17 00:00:00 2001 From: Bert Hartmann Date: Tue, 13 Nov 2018 11:10:04 -0500 Subject: [PATCH] remove logging on the prom/remote/write endpoint if it takes longer than 1s because we can rely on prometheus metrics to inform us --- src/query/api/v1/httpd/handler.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/query/api/v1/httpd/handler.go b/src/query/api/v1/httpd/handler.go index c784eb0cbd..40b0435389 100644 --- a/src/query/api/v1/httpd/handler.go +++ b/src/query/api/v1/httpd/handler.go @@ -124,12 +124,11 @@ func (h *Handler) RegisterRoutes() error { return err } - h.Router.HandleFunc( - remote.PromReadURL, + h.Router.HandleFunc(remote.PromReadURL, logged(promRemoteReadHandler).ServeHTTP, ).Methods(remote.PromReadHTTPMethod) h.Router.HandleFunc(remote.PromWriteURL, - logged(promRemoteWriteHandler).ServeHTTP, + promRemoteWriteHandler.ServeHTTP, ).Methods(remote.PromWriteHTTPMethod) h.Router.HandleFunc(native.PromReadURL, logged(native.NewPromReadHandler(h.engine, h.tagOptions, &h.config.Limits)).ServeHTTP,