To diagnose problems you can configure
run with verbose logging enabled by passing it
Sometimes you may want to reset
teleport to a clean
state. This can be accomplished by erasing everything under
directory. Assuming the default location,
rm -rf /var/lib/teleport/* will do.
Teleport also supports HTTP endpoints for monitoring purposes. They are disabled by default, but you can enable them:
sudo teleport start --diag-addr=127.0.0.1:3000
Now you can see the monitoring information by visiting several endpoints:
http://127.0.0.1:3000/metricsis the list of internal metrics Teleport is tracking. It is compatible with Prometheus collectors. For a full list of metrics review our metrics reference.
http://127.0.0.1:3000/healthzreturns "OK" if the process is healthy or
http://127.0.0.1:3000/readyzis similar to
/healthz, but it returns "OK" only after the node successfully joined the cluster, i.e.it draws the difference between "healthy" and "ready".
http://127.0.0.1:3000/debug/pprof/is Golang's standard profiler. It's only available when
-dflag is given in addition to
You can get a goroutine dump of a running process by sending it
Locate a running teleport daemon PID:
Locate teleport process PIDpidof teleport
USR1 signal to teleport process:
kill -USR1 $(pidof teleport)
Teleport will print the debug information to
stderr. Here what you will see in the logs:
INFO [PROC:1] Got signal "user defined signal 1", logging diagnostic info to stderr. service/signals.go:99 Runtime stats goroutines: 84 ... Goroutines goroutine 1 [running]: runtime/pprof.writeGoroutineStacks(0x3c2ffc0, 0xc0001a8010, 0xc001011a38, 0x4bcfb3) /usr/local/go/src/runtime/pprof/pprof.go:693 +0x9f ...
For commercial support, you can create a ticket through the customer dashboard.