Teleport provides diagnostic endpoint
When teleport is started in debug mode (with
teleport start -d flag) Golang’s CPU, memory and go routines dumps could be collected on the host.
For example, CPU profile could be collected (assuming debugging endpoint address is set to
curl -o cpu.profile http://127.0.0.1:3434/debug/pprof/profile
Note: This curl command will hang for 30 seconds collecting the CPU profile
cpu.profile could be loaded using
go tool pprof tool