-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add handling for '+' char in metric names in queries #93
Conversation
This comment has been minimized.
This comment has been minimized.
As we discussed with @carrieedwards, we want to wait to merge our changes to the upstream before including this fix. This is because we are not sure about the impact of this change to other backends that are not mimir, so this might be a relevant change for the upstream that we don't want to hide in a huge PR. |
target: "foo.b[0-9]+.qux", | ||
etype: EtName, | ||
}, | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way for us to be explicit about what the expression will result with? I think since this is somewhere we're choosing to diverge from graphite-web we should strive to be as clear as possible what we're doing.
02613ff
to
bcc6684
Compare
Go coverage report: Click to expand.
Go lint report: No issues found. 😎 |
We've decided we are merging this to our fork because we consider it necessary at this point. We will be sending this PR to the upstream later and have the maintainers opinions/feedback . |
Add handling for + char in metric names
This PR fixes an error we were seeing in which including a '+' symbol as part of a regular expression in a metric name was resulting in an error being thrown. For example:
alias(testMetric[0-9]+.Metric, 'name')
throws an error of:
unexpected character.
The Graphite docs on wildcard expressions do not explicitly mention the '+' character as unsupported, it does not throw an error and seems to process it. Therefore, this PR aims to make parsing more consistent with Graphite web.