Skip to content

Commit 78f46e2

Browse files
committed
Enable pprof
Add the pprof package to allow debug profiling. Related: #1189 Signed-off-by: SuperQ <superq@gmail.com>
1 parent 00b76df commit 78f46e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/postgres_exporter/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package main
1616
import (
1717
"fmt"
1818
"net/http"
19+
_ "net/http/pprof"
1920
"os"
2021
"strings"
2122

0 commit comments

Comments
 (0)