Commit 3bfea904 authored by Miek Gieben's avatar Miek Gieben

middleware/metrics: increment types counter

Actual increment the type counter. Forgot the to .Inc()
parent 05461ad5
...@@ -50,9 +50,9 @@ func Report(state middleware.State, zone, rcode string, size int, start time.Tim ...@@ -50,9 +50,9 @@ func Report(state middleware.State, zone, rcode string, size int, start time.Tim
} }
typ := state.QType() typ := state.QType()
if _, known := monitorType[typ]; known { if _, known := monitorType[typ]; known {
requestType.WithLabelValues(zone, dns.Type(typ).String()) requestType.WithLabelValues(zone, dns.Type(typ).String()).Inc()
} else { } else {
requestType.WithLabelValues(zone, other) requestType.WithLabelValues(zone, other).Inc()
} }
responseSize.WithLabelValues(zone, net).Observe(float64(size)) responseSize.WithLabelValues(zone, net).Observe(float64(size))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment