mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04: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:
@@ -19,9 +19,9 @@ var (
|
||||
RequestDuration = prometheus.NewHistogramVec(prometheus.HistogramOpts{
|
||||
Namespace: plugin.Namespace,
|
||||
Subsystem: "proxy",
|
||||
Name: "request_duration_milliseconds",
|
||||
Buckets: append(prometheus.DefBuckets, []float64{15, 20, 25, 30, 40, 50, 100, 200, 500, 1000, 2000, 3000, 4000, 5000, 10000}...),
|
||||
Help: "Histogram of the time (in milliseconds) each request took.",
|
||||
Name: "request_duration_seconds",
|
||||
Buckets: plugin.TimeBuckets,
|
||||
Help: "Histogram of the time (in seconds) each request took.",
|
||||
}, []string{"proto", "proxy_proto", "family", "to"})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user