mirror of
https://github.com/coredns/coredns.git
synced 2025-12-20 00:55:11 -05:00
prometheus: add docs and fix varz a little
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
const namespace = "daddy"
|
||||
const namespace = "coredns"
|
||||
|
||||
var (
|
||||
requestCount *prometheus.CounterVec
|
||||
@@ -74,7 +74,7 @@ func define(subsystem string) {
|
||||
responseRcode = prometheus.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: namespace,
|
||||
Subsystem: subsystem,
|
||||
Name: "rcode_code_count_total",
|
||||
Name: "response_rcode_count_total",
|
||||
Help: "Counter of response status codes.",
|
||||
}, []string{"zone", "rcode"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user