Last Updated: November 10, 2017
·
533
· rdumont

Profile Go micro-services in Kubernetes with pprof

One of Go's most life-saving features is its native profiling tool, pprof. It enables you to instrument your code in order to discover problems related to performance, concurrency and memory usage.

I've read a few articles on how to set up the instrumentation, run the tool and analyze its results, but the examples usually work on your machine. Using it on code that is deployed on a Kubernetes cluster takes a few more steps, and this is how I did it.

See full post