mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
middleware/metrics: increment types counter
Actual increment the type counter. Forgot the to .Inc()
This commit is contained in:
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user