Skip to content

Commit d4bf952

Browse files
authored
Merge pull request #135 from linki/pprof
Enable and link pprof on the admin panel
2 parents 04ddced + 384b220 commit d4bf952

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"math/rand"
77
"net/http"
8+
_ "net/http/pprof"
89
"os"
910
"os/signal"
1011
"path"
@@ -294,5 +295,6 @@ var adminPage = `<html>
294295
<h1>chaoskube</h1>
295296
<p><a href="/metrics">Metrics</a></p>
296297
<p><a href="/healthz">Health Check</a></p>
298+
<p><a href="/debug/pprof">pprof</a></p>
297299
</body>
298300
</html>`

0 commit comments

Comments
 (0)