-
Notifications
You must be signed in to change notification settings - Fork 605
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
[Enhancement]: Make prometheus v2/v3 opt in #1016
Comments
Great idea @lorenzofelletti! Couple of questions:
|
Hey @skl good questions. In order
|
Here is the documentation I'd used to check around for other incompatibilities: https://prometheus.io/docs/prometheus/latest/migration/#promql. Regex:
|
This issue has not had any activity in the past 30 days, so the
Thank you for your contributions! |
I'd be interested in some profiles/benchmarks regarding exact vs regex label matching. |
What's the general idea for the enhancement?
#1008 rightfully changed mixin rules not handling normalised buckets in Prometheus v3.
However the change involved switching to regex matching for bucket matching, which is more computationally intensive than the
=
selector.I propose to change this by introducing a mechanism (e.g. config parameter) to target v2 or v3-style rules, thus removing the necessity to use a regular expression. This would positively impact performance for all users, as some of these expressions are already quite expensive to compute.
Please provide any helpful snippets.
What parts of the codebase does the enhancement target?
Rules
Anything else relevant to the enhancement that would help with the triage process?
No response
I agree to the following terms:
The text was updated successfully, but these errors were encountered: