From ec7e73ffa4cebd1aa43de44f4b38e85c19e6a884 Mon Sep 17 00:00:00 2001 From: Hanlin Shi Date: Wed, 15 Feb 2023 10:00:01 -0800 Subject: [PATCH] Add http route for pprof (#4874) --- cmd/controller-manager/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/controller-manager/main.go b/cmd/controller-manager/main.go index 2a9523c5a4..d92ba8bef1 100644 --- a/cmd/controller-manager/main.go +++ b/cmd/controller-manager/main.go @@ -257,6 +257,8 @@ func main() { func createHTTPServer() *http.Server { serverMux := http.NewServeMux() + // HTTP path for pprof + serverMux.Handle("/", http.DefaultServeMux) // HTTP path for prometheus. serverMux.Handle("/metrics", promhttp.Handler())