diff --git a/server/v2/api/telemetry/server.go b/server/v2/api/telemetry/server.go index cd08eb7defae..7e3e066010b6 100644 --- a/server/v2/api/telemetry/server.go +++ b/server/v2/api/telemetry/server.go @@ -67,10 +67,10 @@ func (s *Server[T]) Start(ctx context.Context) error { } mux := http.NewServeMux() - mux.HandleFunc("/", s.metricsHandler) - // keeping /metrics for backwards compatibility - mux.HandleFunc("/metrics", func(w http.ResponseWriter, r *http.Request) { - http.Redirect(w, r, "/", http.StatusMovedPermanently) + // /metrics is the default standard path for Prometheus metrics. + mux.HandleFunc("/metrics", s.metricsHandler) + mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + http.Redirect(w, r, "/metrics", http.StatusMovedPermanently) }) s.server = &http.Server{