The root endpoint exposes too much data. So it cannot be used as public
health check endpoint.
Signed-off-by: Mitja Adebahr <extern.mitja.adebahr@jimdo.com>
}
})
http.Handle(path.Join(*routePrefix, "/metrics"), promhttp.Handler())
+ http.HandleFunc(path.Join(*routePrefix, "/-/healthy"), func(w http.ResponseWriter, r *http.Request) {
+ w.WriteHeader(http.StatusOK)
+ w.Write([]byte("Healthy"))
+ })
http.HandleFunc(path.Join(*routePrefix, "/probe"), func(w http.ResponseWriter, r *http.Request) {
sc.Lock()
conf := sc.C