From fa0abe747327b7dda0b2566f45dcea649f26fb0b Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Tue, 7 Feb 2017 21:28:47 +0000 Subject: middleware/proxy: sane(r) metrics Add proxy_proto and re-instate proto to be the protocol of the incoming query ("tcp" or "udp"). --- middleware/proxy/metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'middleware/proxy/metrics.go') 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. -- cgit v1.2.3