Add coredns_build_info metric (#1418)

In order to track the rollout status of CoreDNS versions, add the common
build_info metric.
This commit is contained in:
Tobias Schmidt
2018-01-23 21:10:55 +01:00
committed by Miek Gieben
parent f9c03c2ead
commit b707438534
6 changed files with 25 additions and 8 deletions

View File

@@ -10,6 +10,7 @@ With *prometheus* you export metrics from CoreDNS and any plugin that has them.
The default location for the metrics is `localhost:9153`. The metrics path is fixed to `/metrics`.
The following metrics are exported:
* `coredns_build_info{version, revision, goversion}` - info about CoreDNS itself.
* `coredns_dns_request_count_total{zone, proto, family}` - total query count.
* `coredns_dns_request_duration_seconds{zone}` - duration to process each query.
* `coredns_dns_request_size_bytes{zone, proto}` - size of the request in bytes.