Control Plane Debug Endpoints

    You can consume the provided data with go tool pprof to generate output in many formats (PDF, DOT, PNG, etc).

    • allocs: A sampling of all past memory allocations
    • cmdline: The command line invocation of the current program
    • goroutine: Stack traces of all current goroutines
    • mutex: Stack traces of holders of contended mutexes
    • profile: CPU profile. You can specify the duration in the seconds GET parameter. After you get the profile file, use the go tool pprof command to investigate the profile.
    • trace: A trace of execution of the current program. You can specify the duration in the seconds GET parameter. After you get the trace file, use the go tool trace command to investigate the trace.

    This data is served over the admin-http port. To find this port, you can examine the pod’s yaml, or for the identity pod for example, issue a command like so:

    It is now possible to use go tool to inspect this data. For example to generate a graph in a PDF file describing memory allocations: