Skip to content

Commit

Permalink
FIX: Enable log request on readiness and liveness probes
Browse files Browse the repository at this point in the history
  • Loading branch information
angelbarrera92 committed Feb 8, 2021
1 parent 1d5524a commit 618f710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/app/prometheus-multi-tenant-proxy/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 618f710

Please sign in to comment.