From 618f710749d32840ae9e3b93c65d532de77eca28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Barrera=20S=C3=A1nchez?= Date: Mon, 8 Feb 2021 15:31:39 +0100 Subject: [PATCH] FIX: Enable log request on readiness and liveness probes --- internal/app/prometheus-multi-tenant-proxy/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/app/prometheus-multi-tenant-proxy/server.go b/internal/app/prometheus-multi-tenant-proxy/server.go index fa381ec..57c308e 100644 --- a/internal/app/prometheus-multi-tenant-proxy/server.go +++ b/internal/app/prometheus-multi-tenant-proxy/server.go @@ -20,8 +20,8 @@ func Serve(c *cli.Context) error { reverseProxy := httputil.NewSingleHostReverseProxy(prometheusServerURL) handler := createHandler(reverseProxy, prometheusServerURL) - http.HandleFunc("/-/healthy", handler) - http.HandleFunc("/-/ready", handler) + http.HandleFunc("/-/healthy", LogRequest(handler)) + http.HandleFunc("/-/ready", LogRequest(handler)) http.HandleFunc("/", LogRequest(BasicAuth(handler, authConfig))) if err := http.ListenAndServe(serveAt, nil); err != nil { log.Fatalf("Prometheus multi tenant proxy can not start %v", err)