var DefBuckets … // LinearBuckets is a wrapper for prometheus.LinearBuckets. func LinearBuckets(start, width float64, count int) []float64 { … } // ExponentialBuckets is a wrapper for prometheus.ExponentialBuckets. func ExponentialBuckets(start, factor float64, count int) []float64 { … } // ExponentialBucketsRange creates 'count' buckets, where the lowest bucket is // 'min' and the highest bucket is 'max'. The final +Inf bucket is not counted // and not included in the returned slice. The returned slice is meant to be // used for the Buckets field of HistogramOpts. // // The function panics if 'count' is 0 or negative, if 'min' is 0 or negative. func ExponentialBucketsRange(min, max float64, count int) []float64 { … } // MergeBuckets merges buckets together func MergeBuckets(buckets ...[]float64) []float64 { … }