From 99f8ddf304ced6c6245eb9fa742fb888a70759d1 Mon Sep 17 00:00:00 2001 From: Prashanth Balasubramanian Date: Wed, 3 Jun 2015 23:51:14 -0700 Subject: [PATCH] Enable profiling endpoints for kubelet --- pkg/kubelet/server.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/kubelet/server.go b/pkg/kubelet/server.go index d0881ea9ff5..35d709645bb 100644 --- a/pkg/kubelet/server.go +++ b/pkg/kubelet/server.go @@ -24,6 +24,7 @@ import ( "io" "net" "net/http" + "net/http/pprof" "net/url" "path" "strconv" @@ -146,6 +147,10 @@ func (s *Server) InstallDebuggingHandlers() { s.mux.HandleFunc("/logs/", s.handleLogs) s.mux.HandleFunc("/containerLogs/", s.handleContainerLogs) s.mux.Handle("/metrics", prometheus.Handler()) + + s.mux.HandleFunc("/debug/pprof/", pprof.Index) + s.mux.HandleFunc("/debug/pprof/profile", pprof.Profile) + s.mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) } // error serializes an error object into an HTTP response.