Skip to content

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

Merged
simonpasquier merged 1 commit intoprometheus:masterfrom
simonpasquier:remove-prometheus-dep
Sep 16, 2019
Merged

*: remove dependency on github.com/prometheus/prometheus#2009
simonpasquier merged 1 commit intoprometheus:masterfrom
simonpasquier:remove-prometheus-dep

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>
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