Collecting debugging information from Teleport Server

#1

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 to127.0.0.1:3434:

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

The resulting cpu.profile could be loaded using go tool pprof tool

0 Likes