mirror of
https://github.com/coredns/coredns.git
synced 2025-11-01 10:43:17 -04:00
plugin/metrics: support HTTPS qType in requests count metric label (#4934)
Automatically submitted.
This commit is contained in:
@@ -21,8 +21,8 @@ func Report(server string, req request.Request, zone, rcode string, size int, st
|
||||
RequestDo.WithLabelValues(server, zone).Inc()
|
||||
}
|
||||
|
||||
qtype := qTypeString(req.QType())
|
||||
RequestCount.WithLabelValues(server, zone, net, fam, qtype).Inc()
|
||||
qType := qTypeString(req.QType())
|
||||
RequestCount.WithLabelValues(server, zone, net, fam, qType).Inc()
|
||||
|
||||
RequestDuration.WithLabelValues(server, zone).Observe(time.Since(start).Seconds())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user