diff options
author | 2017-02-07 21:28:47 +0000 | |
---|---|---|
committer | 2017-02-07 21:28:47 +0000 | |
commit | fa0abe747327b7dda0b2566f45dcea649f26fb0b (patch) | |
tree | d18a3f6309367faab920ee3b7567cc051a7d09b7 /middleware/proxy/metrics.go | |
parent | dbe1b2510d609bf37b0874f0aafa91e982cdc5c2 (diff) | |
download | coredns-fa0abe747327b7dda0b2566f45dcea649f26fb0b.tar.gz coredns-fa0abe747327b7dda0b2566f45dcea649f26fb0b.tar.zst coredns-fa0abe747327b7dda0b2566f45dcea649f26fb0b.zip |
middleware/proxy: sane(r) metrics
Add proxy_proto and re-instate proto to be the protocol of the incoming
query ("tcp" or "udp").
Diffstat (limited to 'middleware/proxy/metrics.go')
-rw-r--r-- | middleware/proxy/metrics.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/middleware/proxy/metrics.go b/middleware/proxy/metrics.go index 485b594c7..1b238148b 100644 --- a/middleware/proxy/metrics.go +++ b/middleware/proxy/metrics.go @@ -16,7 +16,7 @@ var ( Name: "request_duration_milliseconds", Buckets: append(prometheus.DefBuckets, []float64{50, 100, 200, 500, 1000, 2000, 3000, 4000, 5000, 10000}...), Help: "Histogram of the time (in milliseconds) each request took.", - }, []string{"proto", "from"}) + }, []string{"proto", "proxy_proto", "from"}) ) // OnStartupMetrics sets up the metrics on startup. This is done for all proxy protocols. |