Skip to content

Commit 08237c7

Browse files
authored
Merge pull request kubernetes#84221 from wuyafang/remove_promhttp_from_etcd
remove reference to promhttp in etcd-version-monitor
2 parents 6237c00 + 6f0e74a commit 08237c7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

cluster/images/etcd-version-monitor/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ go_library(
1818
deps = [
1919
"//staging/src/k8s.io/component-base/metrics:go_default_library",
2020
"//vendor/github.com/gogo/protobuf/proto:go_default_library",
21-
"//vendor/github.com/prometheus/client_golang/prometheus/promhttp:go_default_library",
2221
"//vendor/github.com/prometheus/client_model/go:go_default_library",
2322
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
2423
"//vendor/github.com/spf13/pflag:go_default_library",

cluster/images/etcd-version-monitor/etcd-version-monitor.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import (
2626
"time"
2727

2828
"github.com/gogo/protobuf/proto"
29-
"github.com/prometheus/client_golang/prometheus/promhttp"
3029
dto "github.com/prometheus/client_model/go"
3130
"github.com/prometheus/common/expfmt"
3231
"github.com/spf13/pflag"
@@ -402,6 +401,6 @@ func main() {
402401

403402
// Serve our metrics on listenAddress/metricsPath.
404403
klog.Infof("Listening on: %v", listenAddress)
405-
http.Handle(metricsPath, promhttp.HandlerFor(gatherer, promhttp.HandlerOpts{}))
404+
http.Handle(metricsPath, metrics.HandlerFor(gatherer, metrics.HandlerOpts{}))
406405
klog.Errorf("Stopped listening/serving metrics: %v", http.ListenAndServe(listenAddress, nil))
407406
}

0 commit comments

Comments
 (0)