From 9f169781bd6da4b1090a532f607787428684932b Mon Sep 17 00:00:00 2001 From: Joe Adams Date: Tue, 22 Apr 2025 21:18:50 -0400 Subject: [PATCH 1/2] 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 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 77dc9d21..bc990802 100644 --- a/main.go +++ b/main.go @@ -17,6 +17,7 @@ import ( "fmt" "io" "net/http" + _ "net/http/pprof" // Enable pprof metrics "net/url" "os" "os/signal" From c6076108ed8a179b4d06a0d866e96bf43732b3ae Mon Sep 17 00:00:00 2001 From: Joe Adams Date: Tue, 6 May 2025 22:22:45 -0400 Subject: [PATCH 2/2] Update main.go Co-authored-by: Ben Kochie Signed-off-by: Joe Adams --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index bc990802..4fd43e07 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ import ( "fmt" "io" "net/http" - _ "net/http/pprof" // Enable pprof metrics + _ "net/http/pprof" "net/url" "os" "os/signal"