mirror of
https://github.com/coredns/coredns.git
synced 2026-04-10 22:15:36 -04:00
Allow selectively exporting all Go runtime metrics (#7990)
Signed-off-by: Ryan Brewster <rpb@anthropic.com>
This commit is contained in:
@@ -55,7 +55,9 @@ This plugin can only be used once per Server Block.
|
||||
## Syntax
|
||||
|
||||
~~~
|
||||
prometheus [ADDRESS]
|
||||
prometheus [ADDRESS] {
|
||||
runtime_metrics
|
||||
}
|
||||
~~~
|
||||
|
||||
For each zone that you want to see metrics for.
|
||||
@@ -63,6 +65,12 @@ For each zone that you want to see metrics for.
|
||||
It optionally takes a bind address to which the metrics are exported; the default
|
||||
listens on `localhost:9153`. The metrics path is fixed to `/metrics`.
|
||||
|
||||
* `runtime_metrics` exports the full Go [runtime/metrics](https://pkg.go.dev/runtime/metrics)
|
||||
set — notably `go_cpu_classes_*` for CPU attribution (GC mark/assist/pause vs user code)
|
||||
and `go_sched_latencies_seconds` for goroutine scheduling delay. Adds roughly 100 scalars
|
||||
and 8 histograms. This is a process-wide latch: enabling it in any server block enables it
|
||||
for all, and it stays enabled across reloads until restart.
|
||||
|
||||
## Examples
|
||||
|
||||
Use an alternative listening address:
|
||||
|
||||
Reference in New Issue
Block a user