mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Migrate prometheus bucket functionality to kube-metrics.
This commit is contained in:
parent
17246b8026
commit
d6fdac8c56
@ -17,8 +17,6 @@ limitations under the License.
|
|||||||
package metrics
|
package metrics
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/prometheus/client_golang/prometheus"
|
|
||||||
|
|
||||||
"k8s.io/component-base/metrics"
|
"k8s.io/component-base/metrics"
|
||||||
"k8s.io/component-base/metrics/legacyregistry"
|
"k8s.io/component-base/metrics/legacyregistry"
|
||||||
)
|
)
|
||||||
@ -43,7 +41,7 @@ var (
|
|||||||
Subsystem: VolumeSchedulerSubsystem,
|
Subsystem: VolumeSchedulerSubsystem,
|
||||||
Name: "scheduling_duration_seconds",
|
Name: "scheduling_duration_seconds",
|
||||||
Help: "Volume scheduling stage latency",
|
Help: "Volume scheduling stage latency",
|
||||||
Buckets: prometheus.ExponentialBuckets(1000, 2, 15),
|
Buckets: metrics.ExponentialBuckets(1000, 2, 15),
|
||||||
StabilityLevel: metrics.ALPHA,
|
StabilityLevel: metrics.ALPHA,
|
||||||
},
|
},
|
||||||
[]string{"operation"},
|
[]string{"operation"},
|
||||||
|
Loading…
Reference in New Issue
Block a user