Skip to content

Commit 9f16978

Browse files
committed
Add pprof for profiling
We have received reports of excessive memory usage for the exporter. Pprof provides a mechanism for users to dump the heap which should provide useful information about what memory has been allocated. Signed-off-by: Joe Adams <github@joeadams.io>
1 parent 8f67121 commit 9f16978

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"fmt"
1818
"io"
1919
"net/http"
20+
_ "net/http/pprof" // Enable pprof metrics
2021
"net/url"
2122
"os"
2223
"os/signal"

0 commit comments

Comments
 (0)