middleware/proxy: sane(r) metrics

Add proxy_proto and re-instate proto to be the protocol of the incoming
query ("tcp" or "udp").
This commit is contained in:
Miek Gieben
2017-02-07 21:28:47 +00:00
parent dbe1b2510d
commit fa0abe7473
3 changed files with 7 additions and 7 deletions

View File

@@ -87,10 +87,10 @@ example.org. 1799 IN SOA sns.dns.icann.org. noc.dns.icann.org. 2016110711 7200
If monitoring is enabled (via the *prometheus* directive) then the following metric is exported:
* coredns_proxy_request_count_total{proto, from}
* coredns_proxy_request_count_total{proto, proxy_proto, from}
Where `proto` is the protocol used (`dns`, or `https_google`) and `from` is **FROM** specified in
the config.
Where `proxy_proto` is the protocol used (`dns`, or `https_google`) and `from` is **FROM** specified in
the config, `proto` is the protocol used by the incoming query ("tcp" or "udp").
## Examples