From 3bfea90411bf98fd7335c06697c087ce681a2547 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Sat, 25 Jun 2016 21:47:54 +0100 Subject: [PATCH] middleware/metrics: increment types counter Actual increment the type counter. Forgot the to .Inc() --- middleware/metrics/handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleware/metrics/handler.go b/middleware/metrics/handler.go index 6b0401378..1a0acbe14 100644 --- a/middleware/metrics/handler.go +++ b/middleware/metrics/handler.go @@ -50,9 +50,9 @@ func Report(state middleware.State, zone, rcode string, size int, start time.Tim } typ := state.QType() if _, known := monitorType[typ]; known { - requestType.WithLabelValues(zone, dns.Type(typ).String()) + requestType.WithLabelValues(zone, dns.Type(typ).String()).Inc() } else { - requestType.WithLabelValues(zone, other) + requestType.WithLabelValues(zone, other).Inc() } responseSize.WithLabelValues(zone, net).Observe(float64(size))