Skip to content

Commit

Permalink
Upgrade Prometheus client to 1.5.0 (grafana#2205)
Browse files Browse the repository at this point in the history
* Upgraded Prometheus client to 1.5.0

Signed-off-by: Marco Pracucci <[email protected]>

* Fixed test-exporter compilation issue

Signed-off-by: Marco Pracucci <[email protected]>

* Fixed integration tests compilation

Signed-off-by: Marco Pracucci <[email protected]>

* Fixed tests

Signed-off-by: Marco Pracucci <[email protected]>
  • Loading branch information
pracucci authored Mar 4, 2020
1 parent 31a7eb4 commit 981a04e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions aws/metrics_autoscaling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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")
}
Expand Down

0 comments on commit 981a04e

Please sign in to comment.