Skip to content

*: remove dependency on github.com/prometheus/prometheus #2009

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

Merged

Conversation

simonpasquier
Copy link
Member

@simonpasquier simonpasquier commented Aug 26, 2019

We depend on the Prometheus repository only for the github.com/prometheus/prometheus/pkg/labels package and from this package, we use only the Matcher struct.

Knowing that this code hasn't evolved for years now, it seems safe and simpler to duplicate it in AlertManager rather than the heavy dependency we have right now (see #2008). In addition Prometheus has an indirect dependency on github.com/hashicorp/memberlist and many other Hashicorp libs which can cause version changes whenever we need to bump github.com/prometheus/prometheus.

Copy link
Member

@codesome codesome left a comment

Choose a reason for hiding this comment

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

Took a quick look, and LGTM! I like this removal of dependency on Prometheus.

@brian-brazil
Copy link
Contributor

Once we unify the two labels packages, we might want to kick this to common.

@simonpasquier
Copy link
Member Author

Once we unify the two labels packages, we might want to kick this to common.

I thought we were going away from common.

@simonpasquier simonpasquier force-pushed the remove-prometheus-dep branch from 92ef759 to a6eb8e8 Compare August 28, 2019 15:17
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
@simonpasquier simonpasquier merged commit e4437ab into prometheus:master Sep 16, 2019
@simonpasquier simonpasquier deleted the remove-prometheus-dep branch September 16, 2019 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants