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 upNon-greedy regex in relabel_configs fails #1520
Comments
This comment has been minimized.
This comment has been minimized.
|
This is a consequence of the regex being anchored and you not having |
brian-brazil
added
the
question
label
Apr 1, 2016
This comment has been minimized.
This comment has been minimized.
grobie
closed this
Apr 2, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 24, 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. |
lock
bot
locked and limited conversation to collaborators
Mar 24, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
pete0emerson commentedApr 1, 2016
Suppose
__meta_consul_tagsvalue is,environment:stage,application:webapp,.With a config of:
I get:
environment="stage,application:webapp".That makes sense, because my regular expression is greedy and blowing past the first comma.
If I change it to be non-greedy:
The results are unchanged:
environment="stage,application:webapp".Interestingly enough, if I change my regex to:
The results come back empty, i.e. no new labels are created.