teleport icon indicating copy to clipboard operation
teleport copied to clipboard

Implement debug service and its CLI commands

Open gabrielcorado opened this issue 11 months ago • 1 comments

Implements RFD 167:

  • Introduces a new service called "debug" which has endpoints for collecting pprof profiles and changing the log level. This service uses a Unix domain socket listener (instead of TCP).
  • Adds teleport debug sub-commands to consume the service endpoints from the same machine.

changelog: New commands for debugging/troubleshooting Teleport instances. teleport debug set-log-level enables changing the instance log level without a restart. Also, the teleport debug profile can collect pprof profiles.

Note: Docs updates will be done after the implementation is merged.

gabrielcorado avatar Mar 26 '24 20:03 gabrielcorado

I moved the debug HTTP mux, handlers, and constants to a separate package. It required a change in our .gitignore as directories named debug were ignored.

gabrielcorado avatar Apr 03 '24 20:04 gabrielcorado

@gabrielcorado See the table below for backport results.

Branch Result
branch/v15 Failed