aboutsummaryrefslogtreecommitdiff
path: root/middleware/metrics/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'middleware/metrics/handler.go')
-rw-r--r--middleware/metrics/handler.go4
1 files 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))