TUN-7147: Revert wrong removal of debug endpoint from metrics port
This commit is contained in:
parent
93e569fa23
commit
d8f2b768f8
|
@ -38,6 +38,7 @@ func newMetricsHandler(
|
||||||
log *zerolog.Logger,
|
log *zerolog.Logger,
|
||||||
) *http.ServeMux {
|
) *http.ServeMux {
|
||||||
router := http.NewServeMux()
|
router := http.NewServeMux()
|
||||||
|
router.Handle("/debug/", http.DefaultServeMux)
|
||||||
router.Handle("/metrics", promhttp.Handler())
|
router.Handle("/metrics", promhttp.Handler())
|
||||||
router.HandleFunc("/healthcheck", func(w http.ResponseWriter, r *http.Request) {
|
router.HandleFunc("/healthcheck", func(w http.ResponseWriter, r *http.Request) {
|
||||||
_, _ = fmt.Fprintf(w, "OK\n")
|
_, _ = fmt.Fprintf(w, "OK\n")
|
||||||
|
|
Loading…
Reference in New Issue