From 37171f7741996d6f98e2335044fda194fbd58d25 Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Tue, 21 Oct 2025 15:02:15 +0200 Subject: [PATCH] Enable pprof (#1212) 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 093ddd30..6b93725d 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"