diff options
author | 2017-11-27 22:34:26 +0100 | |
---|---|---|
committer | 2017-11-27 21:34:26 +0000 | |
commit | 06006fac569364855fe808eece2f8b5b194c9f0a (patch) | |
tree | 266bb1e8de3cb9ebdb92056fe610f658e78f4a67 /plugin/plugin.go | |
parent | 9d52b5acb967e5d94e67cd205498c9c59c5ddcf6 (diff) | |
download | coredns-06006fac569364855fe808eece2f8b5b194c9f0a.tar.gz coredns-06006fac569364855fe808eece2f8b5b194c9f0a.tar.zst coredns-06006fac569364855fe808eece2f8b5b194c9f0a.zip |
Update timing histograms (#1253)
* Use seconds for bucketing.
* Add template for high accuracy timing buckets to avoid copy-pasta.
Diffstat (limited to 'plugin/plugin.go')
-rw-r--r-- | plugin/plugin.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/plugin.go b/plugin/plugin.go index d6b7c9976..3f2d01f9e 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -100,3 +100,6 @@ func ClientWrite(rcode int) bool { // Namespace is the namespace used for the metrics. const Namespace = "coredns" + +// TimeBuckets is based on Prometheus client_golang prometheus.DefBuckets +var TimeBuckets = []float64{0.00025, 0.0005, 0.001, 0.0025, .005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10} |