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 upFigure out approach to regex anchoring #996
Comments
This comment has been minimized.
This comment has been minimized.
|
Agreed. Full string matches would be more useful than substring matches in most cases, and people are already using it wrong. I'm even considering breaking that for selectors, although it will be painful :-/ |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
We have the following unanchored regex usages in the Prometheus server:
@brian-brazil Do any of them make sense to stay unanchored, like the /cc @fabxc |
This comment has been minimized.
This comment has been minimized.
|
The template functions should remain as-is, as they're straight calls to the relevant Go functions. |
This comment has been minimized.
This comment has been minimized.
|
@brian-brazil That's what I suspected. Ok, so I'll anchor all but the template functions then. |
juliusv
referenced this issue
Sep 1, 2015
Merged
Change config regexes to full-string matches. #1044
juliusv
referenced this issue
Sep 1, 2015
Merged
Change relabel_replace() to do full-string matches. #1045
juliusv
added a commit
that referenced
this issue
Sep 1, 2015
juliusv
added a commit
that referenced
this issue
Sep 1, 2015
This comment has been minimized.
This comment has been minimized.
|
All points addressed by the referenced PRs. Closing. |
juliusv
closed this
Sep 1, 2015
grobie
referenced this issue
Nov 4, 2015
Closed
Inconsistent and confusing regex anchoring behavior #1200
fabxc
added a commit
that referenced
this issue
Jan 11, 2016
fabxc
added a commit
that referenced
this issue
Jan 11, 2016
grobie
referenced this issue
Mar 8, 2016
Closed
Ingestion stops, probably due to deadlocked series maintenance #1459
gouthamve
pushed a commit
to gouthamve/promql
that referenced
this issue
Mar 28, 2018
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. |
brian-brazil commentedAug 16, 2015
We've got regexes in a few places, we should ensure we're happy they're all anchored in a way that's consistent and doesn't cause surprises. I believe they're all currently unanchored, which I'm not sure makes sense for selectors at least.