Skip to content

Commit 0ec9fa8

Browse files
committed
add missing endpoint debug/pprof/profile
Signed-off-by: kwilt <[email protected]>
1 parent a699ada commit 0ec9fa8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,8 @@ func main() {
351351
http.HandleFunc(path.Join(*routePrefix, "/-/reload"), updateConfiguration) // Endpoint to reload configuration.
352352
// Serve pprof under the route prefix. These links are displayed on the landing page.
353353
http.HandleFunc(path.Join(*routePrefix, "debug/pprof/"), pprof.Index)
354+
http.HandleFunc(path.Join(*routePrefix, "debug/pprof/profile"), pprof.Profile)
354355
http.HandleFunc(path.Join(*routePrefix, "debug/pprof/heap"), pprof.Handler("heap").ServeHTTP)
355-
// Endpoint to respond to health checks
356-
http.HandleFunc(path.Join(*routePrefix, "/-/healthy"), func(w http.ResponseWriter, r *http.Request) {
357-
w.WriteHeader(http.StatusOK)
358-
w.Write([]byte("Healthy"))
359-
})
360356

361357
if *metricsPath != "/" && *metricsPath != "" {
362358
landingConfig := web.LandingConfig{

0 commit comments

Comments
 (0)