File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
cluster/images/etcd-version-monitor Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ go_library(
18
18
deps = [
19
19
"//staging/src/k8s.io/component-base/metrics:go_default_library" ,
20
20
"//vendor/github.com/gogo/protobuf/proto:go_default_library" ,
21
- "//vendor/github.com/prometheus/client_golang/prometheus/promhttp:go_default_library" ,
22
21
"//vendor/github.com/prometheus/client_model/go:go_default_library" ,
23
22
"//vendor/github.com/prometheus/common/expfmt:go_default_library" ,
24
23
"//vendor/github.com/spf13/pflag:go_default_library" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ import (
26
26
"time"
27
27
28
28
"github.com/gogo/protobuf/proto"
29
- "github.com/prometheus/client_golang/prometheus/promhttp"
30
29
dto "github.com/prometheus/client_model/go"
31
30
"github.com/prometheus/common/expfmt"
32
31
"github.com/spf13/pflag"
@@ -402,6 +401,6 @@ func main() {
402
401
403
402
// Serve our metrics on listenAddress/metricsPath.
404
403
klog .Infof ("Listening on: %v" , listenAddress )
405
- http .Handle (metricsPath , promhttp .HandlerFor (gatherer , promhttp .HandlerOpts {}))
404
+ http .Handle (metricsPath , metrics .HandlerFor (gatherer , metrics .HandlerOpts {}))
406
405
klog .Errorf ("Stopped listening/serving metrics: %v" , http .ListenAndServe (listenAddress , nil ))
407
406
}
You can’t perform that action at this time.
0 commit comments