mirror of https://github.com/k3s-io/k3s
Merge pull request #54806 from gnufied/fix-metric-buckets
Automatic merge from submit-queue (batch tested with PRs 54533, 54777, 54763, 54806, 54703). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Change bucket info of volume operations The default buckets for volume operations are mostly incorrect because most metric tend to cluster in >10s bucket. This fixes the problem with buckets. cc @kubernetes/sig-storage-pr-reviews @jingxu97pull/6/head
commit
1d594764b0
|
@ -24,8 +24,9 @@ import (
|
||||||
|
|
||||||
var storageOperationMetric = prometheus.NewHistogramVec(
|
var storageOperationMetric = prometheus.NewHistogramVec(
|
||||||
prometheus.HistogramOpts{
|
prometheus.HistogramOpts{
|
||||||
Name: "storage_operation_duration_seconds",
|
Name: "storage_operation_duration_seconds",
|
||||||
Help: "Storage operation duration",
|
Help: "Storage operation duration",
|
||||||
|
Buckets: []float64{.1, .25, .5, 1, 2.5, 5, 10, 15, 25, 50},
|
||||||
},
|
},
|
||||||
[]string{"volume_plugin", "operation_name"},
|
[]string{"volume_plugin", "operation_name"},
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue