From 78f46e2414857890abaf8d91e318a02f85b743ad Mon Sep 17 00:00:00 2001 From: SuperQ Date: Tue, 21 Oct 2025 11:50:50 +0200 Subject: [PATCH] Enable pprof Add the pprof package to allow debug profiling. Related: https://github.com/prometheus-community/postgres_exporter/issues/1189 Signed-off-by: SuperQ --- cmd/postgres_exporter/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/postgres_exporter/main.go b/cmd/postgres_exporter/main.go index 093ddd301..6b93725d4 100644 --- a/cmd/postgres_exporter/main.go +++ b/cmd/postgres_exporter/main.go @@ -16,6 +16,7 @@ package main import ( "fmt" "net/http" + _ "net/http/pprof" "os" "strings"