mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -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()
|
||||
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))
|
||||
|
||||
Reference in New Issue
Block a user