File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed
staging/src/k8s.io/legacy-cloud-providers Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ go_library(
66
66
"//vendor/github.com/aws/aws-sdk-go/service/elbv2:go_default_library" ,
67
67
"//vendor/github.com/aws/aws-sdk-go/service/kms:go_default_library" ,
68
68
"//vendor/github.com/aws/aws-sdk-go/service/sts:go_default_library" ,
69
- "//vendor/github.com/prometheus/client_golang/prometheus:go_default_library" ,
70
69
"//vendor/gopkg.in/gcfg.v1:go_default_library" ,
71
70
"//vendor/k8s.io/klog:go_default_library" ,
72
71
],
Original file line number Diff line number Diff line change @@ -21,8 +21,6 @@ package aws
21
21
import (
22
22
"sync"
23
23
24
- "github.com/prometheus/client_golang/prometheus"
25
-
26
24
"k8s.io/component-base/metrics"
27
25
"k8s.io/component-base/metrics/legacyregistry"
28
26
)
@@ -55,14 +53,14 @@ var (
55
53
56
54
func recordAWSMetric (actionName string , timeTaken float64 , err error ) {
57
55
if err != nil {
58
- awsAPIErrorMetric .With (prometheus .Labels {"request" : actionName }).Inc ()
56
+ awsAPIErrorMetric .With (metrics .Labels {"request" : actionName }).Inc ()
59
57
} else {
60
- awsAPIMetric .With (prometheus .Labels {"request" : actionName }).Observe (timeTaken )
58
+ awsAPIMetric .With (metrics .Labels {"request" : actionName }).Observe (timeTaken )
61
59
}
62
60
}
63
61
64
62
func recordAWSThrottlesMetric (operation string ) {
65
- awsAPIThrottlesMetric .With (prometheus .Labels {"operation_name" : operation }).Inc ()
63
+ awsAPIThrottlesMetric .With (metrics .Labels {"operation_name" : operation }).Inc ()
66
64
}
67
65
68
66
var registerOnce sync.Once
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ require (
16
16
github.com/dnaeon/go-vcr v1.0.1 // indirect
17
17
github.com/gophercloud/gophercloud v0.1.0
18
18
github.com/mitchellh/mapstructure v1.1.2
19
- github.com/prometheus/client_golang v0.9.4
20
19
github.com/rubiojr/go-vhd v0.0.0-20160810183302-0bfd3b39853c
21
20
github.com/satori/go.uuid v1.2.0 // indirect
22
21
github.com/stretchr/testify v1.3.0
You can’t perform that action at this time.
0 commit comments