mirror of
https://github.com/coredns/coredns.git
synced 2025-11-12 23:12:17 -05:00
Update timing histograms (#1253)
* Use seconds for bucketing. * Add template for high accuracy timing buckets to avoid copy-pasta.
This commit is contained in:
@@ -20,7 +20,7 @@ func Report(req request.Request, zone, rcode string, size int, start time.Time)
|
||||
typ := req.QType()
|
||||
|
||||
RequestCount.WithLabelValues(zone, net, fam).Inc()
|
||||
RequestDuration.WithLabelValues(zone).Observe(float64(time.Since(start) / time.Millisecond))
|
||||
RequestDuration.WithLabelValues(zone).Observe(time.Since(start).Seconds())
|
||||
|
||||
if req.Do() {
|
||||
RequestDo.WithLabelValues(zone).Inc()
|
||||
|
||||
Reference in New Issue
Block a user