support dump: generate pprof files with debug=1 to avoid generating an unusable heap dump (#3361)

This commit is contained in:
blotus 2024-12-11 17:57:07 +01:00 committed by GitHub
parent dada07b2da
commit d35d01fd9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -314,7 +314,7 @@ func (cli *cliSupport) dumpPprof(ctx context.Context, zw *zip.Writer, prometheus
ctx,
http.MethodGet,
fmt.Sprintf(
"http://%s/debug/pprof/%s?debug=1",
"http://%s/debug/pprof/%s",
net.JoinHostPort(
prometheusCfg.ListenAddr,
strconv.Itoa(prometheusCfg.ListenPort),