Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dependency on github.com/prometheus/common/log #1

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Oct 5, 2021

github.com/prometheus/common/log was removed in favor of Prometheus internally using github.com/go-kit/kit/log (and later
github.com/go-kit/log). This exporter still uses the removed package, which prevents downstream importers from being able to upgrade the prometheus/common module.

This is a temporary PR for the Grafana Agent to use until percona#355 is merged.

Signed-off-by: Robert Fratto robertfratto@gmail.com

github.com/prometheus/common/log was removed in favor of Prometheus
internally using github.com/go-kit/kit/log (and later
github.com/go-kit/log). This exporter still uses the removed package,
which prevents downstream importers from being able to upgrade the
prometheus/common module.

Signed-off-by: Robert Fratto <robertfratto@gmail.com>
@@ -13,8 +13,9 @@ require (
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/client_model v0.2.0
github.com/prometheus/common v0.26.0
github.com/shirou/gopsutil v3.21.8+incompatible // indirect

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this come along for the ride or was it intentional?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 let me go mod tidy again

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, go mod tidy added this, probably as a result of me using a newer Go version

Copy link

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rfratto rfratto merged commit 351f577 into release-0.20.7-grafana Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants