File tree Expand file tree Collapse file tree 4 files changed +4
-10
lines changed
staging/src/k8s.io/component-base/metrics/prometheus Expand file tree Collapse file tree 4 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ go_library(
14
14
"//staging/src/k8s.io/client-go/tools/metrics:go_default_library" ,
15
15
"//staging/src/k8s.io/component-base/metrics:go_default_library" ,
16
16
"//staging/src/k8s.io/component-base/metrics/legacyregistry:go_default_library" ,
17
- "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library" ,
18
17
],
19
18
)
20
19
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ import (
20
20
"net/url"
21
21
"time"
22
22
23
- "github.com/prometheus/client_golang/prometheus"
24
-
25
23
"k8s.io/client-go/tools/metrics"
26
24
k8smetrics "k8s.io/component-base/metrics"
27
25
"k8s.io/component-base/metrics/legacyregistry"
34
32
& k8smetrics.HistogramOpts {
35
33
Name : "rest_client_request_duration_seconds" ,
36
34
Help : "Request latency in seconds. Broken down by verb and URL." ,
37
- Buckets : prometheus .ExponentialBuckets (0.001 , 2 , 10 ),
35
+ Buckets : k8smetrics .ExponentialBuckets (0.001 , 2 , 10 ),
38
36
},
39
37
[]string {"verb" , "url" },
40
38
)
44
42
& k8smetrics.HistogramOpts {
45
43
Name : "rest_client_request_latency_seconds" ,
46
44
Help : "(Deprecated) Request latency in seconds. Broken down by verb and URL." ,
47
- Buckets : prometheus .ExponentialBuckets (0.001 , 2 , 10 ),
45
+ Buckets : k8smetrics .ExponentialBuckets (0.001 , 2 , 10 ),
48
46
},
49
47
[]string {"verb" , "url" },
50
48
)
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ go_library(
10
10
"//staging/src/k8s.io/client-go/util/workqueue:go_default_library" ,
11
11
"//staging/src/k8s.io/component-base/metrics:go_default_library" ,
12
12
"//staging/src/k8s.io/component-base/metrics/legacyregistry:go_default_library" ,
13
- "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library" ,
14
13
],
15
14
)
16
15
Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ limitations under the License.
17
17
package workqueue
18
18
19
19
import (
20
- "github.com/prometheus/client_golang/prometheus"
21
-
22
20
"k8s.io/client-go/util/workqueue"
23
21
k8smetrics "k8s.io/component-base/metrics"
24
22
"k8s.io/component-base/metrics/legacyregistry"
@@ -56,14 +54,14 @@ var (
56
54
Subsystem : WorkQueueSubsystem ,
57
55
Name : QueueLatencyKey ,
58
56
Help : "How long in seconds an item stays in workqueue before being requested." ,
59
- Buckets : prometheus .ExponentialBuckets (10e-9 , 10 , 10 ),
57
+ Buckets : k8smetrics .ExponentialBuckets (10e-9 , 10 , 10 ),
60
58
}, []string {"name" })
61
59
62
60
workDuration = k8smetrics .NewHistogramVec (& k8smetrics.HistogramOpts {
63
61
Subsystem : WorkQueueSubsystem ,
64
62
Name : WorkDurationKey ,
65
63
Help : "How long in seconds processing an item from workqueue takes." ,
66
- Buckets : prometheus .ExponentialBuckets (10e-9 , 10 , 10 ),
64
+ Buckets : k8smetrics .ExponentialBuckets (10e-9 , 10 , 10 ),
67
65
}, []string {"name" })
68
66
69
67
unfinished = k8smetrics .NewGaugeVec (& k8smetrics.GaugeOpts {
You can’t perform that action at this time.
0 commit comments