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

Several tags for filtering targets in consul_sd_config #4786

Closed
ashepelev opened this Issue Oct 25, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@ashepelev
Copy link

ashepelev commented Oct 25, 2018

Proposal

According to documentation,

# An optional tag used to filter nodes for a given service.
[ tag: <string> ]

it is not possible to specify several tags to filter targets in consul_sd_config. One can use relabel_configs with action keep or drop but anyway it causes metrics to be pulled.

According to consul documentation it is possible to specify multiple tags in request:

tag (string: "") - Specifies the tag to filter on. This is specified as part of the URL as a query parameter. Can be used multiple times for additional filtering, returning only the results that include all of the tag values provided.
@cstyan

This comment has been minimized.

Copy link
Contributor

cstyan commented Jan 22, 2019

This will require updating the vendored Consul api, catalog.ServiceMultipleTags was only added ~4 months ago: hashicorp/consul@34e5516

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.