diff --git a/receiver/prometheusreceiver/metrics_receiver_helper_test.go b/receiver/prometheusreceiver/metrics_receiver_helper_test.go index 1bda7ac42e90..dda1551ed3b6 100644 --- a/receiver/prometheusreceiver/metrics_receiver_helper_test.go +++ b/receiver/prometheusreceiver/metrics_receiver_helper_test.go @@ -18,8 +18,8 @@ import ( "testing" "time" - gokitlog "github.com/go-kit/log" "github.com/gogo/protobuf/proto" + "github.com/prometheus/common/promslog" promcfg "github.com/prometheus/prometheus/config" "github.com/prometheus/prometheus/model/labels" "github.com/prometheus/prometheus/model/value" @@ -163,7 +163,7 @@ func setupMockPrometheus(tds ...*testData) (*mockPrometheus, *PromConfig, error) for _, t := range tds { t.attributes = internal.CreateResource(t.name, u.Host, labels.New(l...)).Attributes() } - pCfg, err := promcfg.Load(string(cfg), false, gokitlog.NewNopLogger()) + pCfg, err := promcfg.Load(string(cfg), promslog.NewNopLogger()) return mp, (*PromConfig)(pCfg), err } diff --git a/receiver/prometheusreceiver/metrics_receiver_test.go b/receiver/prometheusreceiver/metrics_receiver_test.go index b0c1ed784ce1..f635fc487984 100644 --- a/receiver/prometheusreceiver/metrics_receiver_test.go +++ b/receiver/prometheusreceiver/metrics_receiver_test.go @@ -12,8 +12,8 @@ import ( "testing" "time" - gokitlog "github.com/go-kit/log" "github.com/prometheus/common/model" + "github.com/prometheus/common/promslog" promConfig "github.com/prometheus/prometheus/config" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" @@ -1621,7 +1621,7 @@ scrape_configs: static_configs: - targets: - %s - `, strings.TrimPrefix(svr.URL, "http://")), false, gokitlog.NewNopLogger()) + `, strings.TrimPrefix(svr.URL, "http://")), promslog.NewNopLogger()) require.NoError(t, err) set := receivertest.NewNopSettings() receiver := newPrometheusReceiver(set, &Config{