plugin/forward Add rcode and rtype to request_duration_seconds metric (#4391)

* plugin/forward Add rcode and rtype to request_duration_seconds metric

Signed-off-by: Maxime Ginters <maxime.ginters@shopify.com>

* Control the cardinality of query type

Signed-off-by: Maxime Ginters <maxime.ginters@shopify.com>
This commit is contained in:
Maxime Ginters
2021-01-28 10:37:17 -05:00
committed by GitHub
parent 2ab304078b
commit b1173ed2a5
5 changed files with 47 additions and 36 deletions

View File

@@ -107,7 +107,7 @@ If monitoring is enabled (via the *prometheus* plugin) then the following metric
* `coredns_forward_requests_total{to}` - query count per upstream.
* `coredns_forward_responses_total{to}` - Counter of responses received per upstream.
* `coredns_forward_request_duration_seconds{to}` - duration per upstream interaction.
* `coredns_forward_request_duration_seconds{to, rcode, type}` - duration per upstream, RCODE, type
* `coredns_forward_responses_total{to, rcode}` - count of RCODEs per upstream.
* `coredns_forward_healthcheck_failures_total{to}` - number of failed health checks per upstream.
* `coredns_forward_healthcheck_broken_total{}` - counter of when all upstreams are unhealthy,