diff --git a/cmd/run.go b/cmd/run.go index 695ecf6a..f8288bcb 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -20,9 +20,6 @@ import ( "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/spf13/cobra" "github.com/spf13/viper" - - "net/http" - _ "net/http/pprof" ) const shutdownTimeout = 20 * time.Second @@ -58,8 +55,6 @@ func run(cmd *cobra.Command, args []string) error { metricsServer.GET("/live", livenessProbeHandler.Check) metricsServer.GET(cfg.GetString("metrics.path"), echo.WrapHandler(promhttp.Handler())) - metricsServer.GET("/debug/*", echo.WrapHandler(http.DefaultServeMux)) - wg := sync.WaitGroup{} ctx, stop := context.WithCancel(utils.SetLog(context.Background(), log))