Skip to content

Commit d31e1cf

Browse files
authored
Merge pull request #6453 from x13n/master
Use exponential buckets for function_duration_seconds
2 parents 13c5875 + aa3bab1 commit d31e1cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster-autoscaler/metrics/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ var (
229229
Namespace: caNamespace,
230230
Name: "function_duration_seconds",
231231
Help: "Time taken by various parts of CA main loop.",
232-
Buckets: []float64{0.01, 0.05, 0.1, 0.5, 1.0, 2.5, 5.0, 7.5, 10.0, 12.5, 15.0, 17.5, 20.0, 22.5, 25.0, 27.5, 30.0, 50.0, 75.0, 100.0, 1000.0},
232+
Buckets: k8smetrics.ExponentialBuckets(0.01, 1.5, 30), // 0.01, 0.015, 0.0225, ..., 852.2269299239293, 1278.3403948858938
233233
}, []string{"function"},
234234
)
235235

0 commit comments

Comments
 (0)