Skip to content

Commit d6fdac8

Browse files
committed
Migrate prometheus bucket functionality to kube-metrics.
1 parent 17246b8 commit d6fdac8

File tree

1 file changed

+1
-3
lines changed
  • pkg/controller/volume/scheduling/metrics

1 file changed

+1
-3
lines changed

pkg/controller/volume/scheduling/metrics/metrics.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ limitations under the License.
1717
package metrics
1818

1919
import (
20-
"github.com/prometheus/client_golang/prometheus"
21-
2220
"k8s.io/component-base/metrics"
2321
"k8s.io/component-base/metrics/legacyregistry"
2422
)
@@ -43,7 +41,7 @@ var (
4341
Subsystem: VolumeSchedulerSubsystem,
4442
Name: "scheduling_duration_seconds",
4543
Help: "Volume scheduling stage latency",
46-
Buckets: prometheus.ExponentialBuckets(1000, 2, 15),
44+
Buckets: metrics.ExponentialBuckets(1000, 2, 15),
4745
StabilityLevel: metrics.ALPHA,
4846
},
4947
[]string{"operation"},

0 commit comments

Comments
 (0)