github.com/projectcontour/contour@v1.28.2/site/content/docs/v1.13.0/troubleshooting/profiling-contour.md (about)

     1  # Accessing Contour's /debug/pprof Service
     2  
     3  Contour exposes the [net/http/pprof][1] handlers for `go tool pprof` and `go tool trace` by default on `127.0.0.1:6060`.
     4  This service is useful for profiling Contour.
     5  To access it from your workstation use `kubectl port-forward` like so,
     6  
     7  ```bash
     8  # Get one of the pods that matches the Contour deployment
     9  $ CONTOUR_POD=$(kubectl -n projectcontour get pod -l app=contour -o name | head -1)
    10  # Do the port forward to that pod
    11  $ kubectl -n projectcontour port-forward $CONTOUR_POD 6060
    12  ```
    13  
    14  [1]: https://golang.org/pkg/net/http/pprof