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 upDynamic relabelling only sets one last target_label #3472
Comments
This comment has been minimized.
This comment has been minimized.
|
That's how regular expression work. See https://www.robustperception.io/extracting-full-labels-from-consul-tags/ It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Nov 14, 2017
This comment has been minimized.
This comment has been minimized.
|
I misread the #2078 then, and expected different result from it. Thanks for the link, it works indeed.
|
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
bookwar commentedNov 14, 2017
What did you do?
Following example in #2078 I have a Nomad service which is scraped from Consul with
__meta_consul_tags = ,label-env-dev,label-project-myproject,label-team-myteam,Then the following relabeling rules are applied:
What did you expect to see?
Labels
env=dev,project=myprojectandteam=myteamWhat did you see instead?
Only the last label is applied:
team=myteamEnvironment
latest image from docker hub docker.io/prom/prometheus
version="(version=2.0.0, branch=HEAD, revision=0a74f98628a0463dddc90528220c94de5032d1a0)"