Skip to content

Profiling ​

The relay proxy is able to expose profiling information.
This is useful to understand the performance of the service and solve potential issues.

The information are exposed on the /debug/pprof endpoint, and we are using the default net/http/pprof package to expose the information.

WARNING

By default the profiling endpoints are disabled, and must be enabled in the configuration file.

List of endpoints exposed is available http://localhost:1031/debug/pprof/

Enable profiling ​

In your relay proxy configuration file you need to set the enablePprof field to true.

yaml
retriever:
  kind: file
  path: /semaphore/flags.yaml
#  ...
enablePprof: true

NOTE

Setting logLevel: debug also enables profiling. Use enablePprof: true to enable profiling without debug logging.

yaml
#...
logLevel: debug

Released under the MIT License.