Skip to content

Commit cf3b883

Browse files
committed
adapt to metrics name change from k8s 1.17
see kubernetes-sigs/controller-runtime#1587
1 parent c4c1a8e commit cf3b883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/metrics/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ var (
3232
// "verb" and "url" labels. It is used for the rest client latency metrics.
3333
requestLatency = prometheus.NewHistogramVec(
3434
prometheus.HistogramOpts{
35-
Name: "rest_client_request_latency_seconds",
36-
Help: "Request latency in seconds. Broken down by verb and URL.",
35+
Name: "rest_client_request_duration_seconds",
36+
Help: "Request duration in seconds. Broken down by verb and URL.",
3737
Buckets: prometheus.ExponentialBuckets(0.001, 2, 10),
3838
},
3939
[]string{"verb", "url"},

0 commit comments

Comments
 (0)