diff options
author | 2016-04-05 10:53:23 +0100 | |
---|---|---|
committer | 2016-04-05 10:53:23 +0100 | |
commit | c961acbb6e9e06279d3dca077ba47d8a6170da20 (patch) | |
tree | 8cbcb55515965a94d3fb0395a7d54e7e4e84c2a0 /middleware/prometheus/metrics.go | |
parent | 20e16491ec7495adc07aef7d506463f15a2b6733 (diff) | |
download | coredns-c961acbb6e9e06279d3dca077ba47d8a6170da20.tar.gz coredns-c961acbb6e9e06279d3dca077ba47d8a6170da20.tar.zst coredns-c961acbb6e9e06279d3dca077ba47d8a6170da20.zip |
Add complete secondary support
Respond to notifies and allow a secondary to follow the SOA parameters
to update a zone from a primary. Also sprinkle it with logging.
Also extend monitoring to include qtype in more metrics.
Diffstat (limited to 'middleware/prometheus/metrics.go')
-rw-r--r-- | middleware/prometheus/metrics.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/middleware/prometheus/metrics.go b/middleware/prometheus/metrics.go index d6c4249e0..f030a6fed 100644 --- a/middleware/prometheus/metrics.go +++ b/middleware/prometheus/metrics.go @@ -53,7 +53,7 @@ func define(subsystem string) { Namespace: namespace, Subsystem: subsystem, Name: "request_count_total", - Help: "Counter of DNS requests made per zone and type.", + Help: "Counter of DNS requests made per zone and type and opcode.", }, []string{"zone", "qtype"}) requestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{ @@ -61,7 +61,7 @@ func define(subsystem string) { Subsystem: subsystem, Name: "request_duration_seconds", Help: "Histogram of the time (in seconds) each request took.", - }, []string{"zone"}) + }, []string{"zone", "qtype"}) responseSize = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: namespace, @@ -69,12 +69,12 @@ func define(subsystem string) { Name: "response_size_bytes", Help: "Size of the returns response in bytes.", Buckets: []float64{0, 100, 200, 300, 400, 511, 1023, 2047, 4095, 8291, 16e3, 32e3, 48e3, 64e3}, - }, []string{"zone"}) + }, []string{"zone", "qtype"}) responseRcode = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: namespace, Subsystem: subsystem, Name: "response_rcode_count_total", Help: "Counter of response status codes.", - }, []string{"zone", "rcode"}) + }, []string{"zone", "rcode", "qtype"}) } |