From 981a04ee0337899334ba603e50387b8defc93f92 Mon Sep 17 00:00:00 2001 From: Marco Pracucci Date: Wed, 4 Mar 2020 09:54:24 +0100 Subject: [PATCH] Upgrade Prometheus client to 1.5.0 (#2205) * Upgraded Prometheus client to 1.5.0 Signed-off-by: Marco Pracucci * Fixed test-exporter compilation issue Signed-off-by: Marco Pracucci * Fixed integration tests compilation Signed-off-by: Marco Pracucci * Fixed tests Signed-off-by: Marco Pracucci --- aws/metrics_autoscaling_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aws/metrics_autoscaling_test.go b/aws/metrics_autoscaling_test.go index 244ae23a7e40f..6bd9b73d8863d 100644 --- a/aws/metrics_autoscaling_test.go +++ b/aws/metrics_autoscaling_test.go @@ -7,7 +7,6 @@ import ( "time" "github.com/pkg/errors" - "github.com/prometheus/client_golang/api" promV1 "github.com/prometheus/client_golang/api/prometheus/v1" "github.com/prometheus/common/model" @@ -430,7 +429,7 @@ func (m *mockPrometheus) SetResponseForReads(usageRates [][]int, errorRates [][] } } -func (m *mockPrometheus) QueryRange(ctx context.Context, query string, r promV1.Range) (model.Value, api.Warnings, error) { +func (m *mockPrometheus) QueryRange(ctx context.Context, query string, r promV1.Range) (model.Value, promV1.Warnings, error) { if len(m.rangeValues) == 0 { return nil, nil, errors.New("mockPrometheus.QueryRange: out of values") }