plugin/metrics: add panic counter (#1778)

Count and export number of panics we see.

Fixes #1294
This commit is contained in:
Miek Gieben
2018-05-05 19:47:41 +02:00
committed by GitHub
parent 41f1a1434a
commit 7c27577707
4 changed files with 14 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ The default location for the metrics is `localhost:9153`. The metrics path is fi
The following metrics are exported:
* `coredns_build_info{version, revision, goversion}` - info about CoreDNS itself.
* `coredns_panic_count_total{}` - total number of panics.
* `coredns_dns_request_count_total{server, zone, proto, family}` - total query count.
* `coredns_dns_request_duration_seconds{server, zone}` - duration to process each query.
* `coredns_dns_request_size_bytes{server, zone, proto}` - size of the request in bytes.