From e5c5dad4f3001a96527a518e1a4e7c1e12f94b8d Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Mon, 19 Jun 2023 16:47:55 -0600 Subject: [PATCH] Add pprof handler endpoints to ingestor --- cmd/ingestor/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/ingestor/main.go b/cmd/ingestor/main.go index d30e2302..100905e8 100644 --- a/cmd/ingestor/main.go +++ b/cmd/ingestor/main.go @@ -237,6 +237,10 @@ func realMain(ctx *cli.Context) error { mux.HandleFunc("/receive", svc.HandleReceive) mux.HandleFunc("/debug/pprof/", pprof.Index) + mux.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline) + mux.HandleFunc("/debug/pprof/profile", pprof.Profile) + mux.HandleFunc("/debug/pprof/symbol", pprof.Symbol) + mux.HandleFunc("/debug/pprof/trace", pprof.Trace) srv := &http.Server{Addr: ":9090", Handler: mux} srv.ErrorLog = newLooger()