TUN-7147: Revert wrong removal of debug endpoint from metrics port

This commit is contained in:
João Oliveirinha 2023-01-31 11:17:49 +00:00
parent 93e569fa23
commit d8f2b768f8
1 changed files with 1 additions and 0 deletions

View File

@ -38,6 +38,7 @@ func newMetricsHandler(
log *zerolog.Logger,
) *http.ServeMux {
router := http.NewServeMux()
router.Handle("/debug/", http.DefaultServeMux)
router.Handle("/metrics", promhttp.Handler())
router.HandleFunc("/healthcheck", func(w http.ResponseWriter, r *http.Request) {
_, _ = fmt.Fprintf(w, "OK\n")