Remove unnecessary pprof import (#14988)

The pattern of `import _ "net/http/pprof"` adds handlers to the default
http handler, but Prometheus does not use that. There are explicit
handlers in `web/web.go`.

So, we can remove this line with no impact to behaviour.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
pull/14992/head
Bryan Boreham 2 months ago committed by GitHub
parent 5f26d86daa
commit 410fcce6f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -22,7 +22,6 @@ import (
"math/bits" "math/bits"
"net" "net"
"net/http" "net/http"
_ "net/http/pprof" // Comment this line to disable pprof endpoint.
"net/url" "net/url"
"os" "os"
"os/signal" "os/signal"

Loading…
Cancel
Save