COREDNS-PPROF(7)
pprof π (that's the CoreDNS plugin, bestie)
okay so this is the pprof plugin from CoreDNS β the manual-page energy is COREDNS-PPROF(7) and honestly? it's giving "debug era." lowkey essential, highkey something you don't wanna leave running forever. let's get into it π«Ά
β¨ NAME β¨
pprof β publishes runtime profiling data at endpoints under /debug/pprof. literally that's it, that's the whole vibe π
πΈ DESCRIPTION πΈ
so you can just visit /debug/pprof on your site and get an index of all the available endpoints. cute, right? by default it listens on localhost:6053. no cap. π
π¨ real talk: this is a debugging tool. certain requests β like collecting execution traces β can be slow. if you use pprof on a live server, pls consider restricting access or enabling it only temporarily. do not leave the door wide open and then act surprised, i'm begging π
also important, bestie: this plugin can only be used once per Server Block. one per block, that's the rule. π
π¦ SYNTAX π¦
pprof [ADDRESS]
optionally pprof takes an address; the default is localhost:6053.
and there's an extra option you can set with this extended syntax, iykyk:
pprof [ADDRESS] {
block [RATE]
}
block [RATE]β theblockoption enables block profiling, andRATEdefaults to1.RATEmust be a positive value. for what block profiling actually entails, see the Diagnostics, chapter profiling β¨https://golang.org/doc/diagnostics.htmlβ© andruntime.SetBlockProfileRateβ¨https://golang.org/pkg/runtime/#SetBlockProfileRateβ©. go read the lore π
π§ EXAMPLES π§
enable a pprof endpoint π
. {
pprof
}
and then use the pprof tool to get statistics: go tool pprof http://localhost:6053. slay β¨
listen on an alternate address π
. {
pprof 10.9.8.7:6060
}
listen on an all addresses on port 6060, and enable block profiling π₯
. {
pprof :6060 {
block
}
}
π three examples, three vibes. pick your main character energy.
π SEE ALSO π
- see Go's pprof documentation β¨
https://golang.org/pkg/net/http/pprof/β© - and Profiling Go Programs β¨
https://blog.golang.org/profiling-go-programsβ© - see
runtime.SetBlockProfileRateβ¨https://golang.org/pkg/runtime/#SetBlockProfileRateβ© for background on block profiling π
okay that's the whole page, bestie β no skips, no cuts, every last detail is here π this was written by CoreDNS and it's the March 2026 version, so likeβ¦ fresh off the press π stay profiled, stay safe, and remember: debug endpoints are a privilege, not a personality trait π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: coredns 1.14.7
- opensuse-leap 16.0: coredns-extras 1.15.0-bp160.1.1 Β· Apache-2.0 AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms