File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
staging/src/k8s.io/component-base/metrics Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,19 @@ import (
21
21
"github.com/prometheus/client_golang/prometheus"
22
22
)
23
23
24
+ // DefBuckets is a wrapper for prometheus.DefBuckets
25
+ var DefBuckets = prometheus .DefBuckets
26
+
27
+ // LinearBuckets is a wrapper for prometheus.LinearBuckets.
28
+ func LinearBuckets (start , width float64 , count int ) []float64 {
29
+ return prometheus .LinearBuckets (start , width , count )
30
+ }
31
+
32
+ // ExponentialBuckets is a wrapper for prometheus.ExponentialBuckets.
33
+ func ExponentialBuckets (start , factor float64 , count int ) []float64 {
34
+ return prometheus .ExponentialBuckets (start , factor , count )
35
+ }
36
+
24
37
// Histogram is our internal representation for our wrapping struct around prometheus
25
38
// histograms. Summary implements both kubeCollector and ObserverMetric
26
39
type Histogram struct {
You can’t perform that action at this time.
0 commit comments