Skip to content

Commit

Permalink
Add pprof handler endpoints to ingestor
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilder committed Jun 19, 2023
1 parent 6c60cdb commit e5c5dad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/ingestor/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e5c5dad

Please sign in to comment.