From 4fb59d1e612323236f1b9c0e87e2bc6d3acec95b Mon Sep 17 00:00:00 2001 From: beorn7 Date: Mon, 17 Sep 2018 13:05:43 +0200 Subject: [PATCH] Remove use of deprecated prometheus.Handler Signed-off-by: beorn7 --- .../examples/remote_storage/remote_storage_adapter/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/documentation/examples/remote_storage/remote_storage_adapter/main.go b/documentation/examples/remote_storage/remote_storage_adapter/main.go index 8a48cf8777..e2f2bc488a 100644 --- a/documentation/examples/remote_storage/remote_storage_adapter/main.go +++ b/documentation/examples/remote_storage/remote_storage_adapter/main.go @@ -30,6 +30,7 @@ import ( "github.com/gogo/protobuf/proto" "github.com/golang/snappy" "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/promhttp" "github.com/prometheus/common/model" influx "github.com/influxdata/influxdb/client/v2" @@ -97,7 +98,7 @@ func init() { func main() { cfg := parseFlags() - http.Handle(cfg.telemetryPath, prometheus.Handler()) + http.Handle(cfg.telemetryPath, promhttp.Handler()) logLevel := promlog.AllowedLevel{} if err := logLevel.Set(cfg.logLevel); err != nil {