We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd30696 commit b3bf9e6Copy full SHA for b3bf9e6
main.go
@@ -19,6 +19,8 @@ package main
19
20
import (
21
"flag"
22
+ "net/http"
23
+ "net/http/pprof"
24
"os"
25
26
// Load all auth plugins
@@ -151,6 +153,13 @@ func main() {
151
153
}
152
154
155
cmd.monitoringServer = monitoring.NewServer(adapterCfg, cmd.MonitoringPort, cmd.PrometheusMetricsEnabled)
156
+
157
+ http.HandleFunc("/debug/pprof/", pprof.Index)
158
+ http.HandleFunc("/debug/pprof/cmdline", pprof.Cmdline)
159
+ http.HandleFunc("/debug/pprof/profile", pprof.Profile)
160
+ http.HandleFunc("/debug/pprof/symbol", pprof.Symbol)
161
+ http.HandleFunc("/debug/pprof/trace", pprof.Trace)
162
163
go cmd.monitoringServer.Start()
164
165
elasticsearchProvider := cmd.makeProviderOrDie(adapterCfg)
0 commit comments