Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up[feature] Ability to specify consul_sd service with tag #771
Comments
This comment has been minimized.
This comment has been minimized.
|
Or somewhat related: where do consul tags show up? there is tag_separator in the config, but I haven't seen them anywhere in the metadata labels |
This comment has been minimized.
This comment has been minimized.
|
The Consul tags are in the
In general you don't want to open two entirely new scrape configs to scrape targets from two services.
|
This comment has been minimized.
This comment has been minimized.
|
amazing! thanks. Two answers in one |
MrMMorris
closed this
Jun 4, 2015
This comment has been minimized.
This comment has been minimized.
joonas-fi
commented
Jun 9, 2016
•
|
Sorry for digging up old graves, but I just wanted to clarify something that I struggled with. Thanks @fabxc for the tip on using relabel_configs with __meta_consul_tags and regex! I wouldn't have guessed that you can use that as a filter for targets. In fact, I think this is super confusing, as even the docs say:
Nothing suggests to me that this system can be used to filter out target candidates advertised by the service discovery backend. Anyways, using regex
Which I didn't immediately understand to mean that it essentially makes my regex to mean I'm glad I accidentally hovered my mouse over "Labels" cell in Prometheus' UI ( Anyways, I'm thankful for @fabxc's suggestion as my problem is now solved. :) edit: What I'm trying to say is that the docs should mention on how to filter targets by tag, as I guess that is what almost everybody has to do anyways, since not all Consul-advertised services have a |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the feedback, we should probably make our documentation clearer. On Thu, Jun 9, 2016, 6:08 PM joonas-fi notifications@github.com wrote:
|
simonpasquier
pushed a commit
to simonpasquier/prometheus
that referenced
this issue
Oct 12, 2017
iksaif
referenced this issue
Jan 19, 2018
Closed
consul: more efficient tag and service filtering #3711
This comment has been minimized.
This comment has been minimized.
sbilello
commented
Oct 19, 2018
•
|
Let's suppose you have a service |
MrMMorris commentedJun 4, 2015
Would it be possible to have the ability to specify tags along with consul services? something like:
As opposed to having to have separate service names like this:
Or maybe
Does this make sense?