-httpprof host:port gets me a tcp listen, but always a 404

The -httpprof exposes the standard Golang http endpoint (/debug/pprof) so you can use their documentation to find more information about how to profile Golang apps. These are the primary profiling docs:

Also as a side effect of running -httpprof it also exposes some metrics at /debug/vars. These are mostly provided by the Go expvar package but there are a few metrics from libbeat.

1 Like