-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simplify how experimental PromQL functions are enabled #10660
Conversation
💻 Deploy preview deleted. |
cb77f3b
to
8a7d444
Compare
Remove experimental configuration flags `querier.promql-experimental-functions-enabled` and `query-frontend.block-promql-experimental-functions` used for controlling access to experimental PromQL features. Instead enable experimental PromQL functions at the engine level by default, block access to them by default, and selectively enable them at a per-user level using the middleware introduced in #9798. Justification for this change: * There are currently 3 different settings that need to changed to allow customers to make use experimental functions in PromQL that need to be applied 3 different places (queriers, query-frontend, and per-tenant limits). * The performance impact from always enabling but blocking via middleware experimental PromQL functions (what this PR does) is so small that it does not show up in profiling from what I can tell. Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
8a7d444
to
f603de2
Compare
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.
changes seem good.
Do I have it right that if someone wants to enable experimental promQL functions for all tenants, then they just need to set -query-frontend.enabled-promql-experimental-functions=all
?
Yep, exactly. |
We're notably missing any non-reference documentation about this. I'll open an issue to add some after merging this PR (maybe under |
either configure or near the experimental features docs in about-versioning.md |
Thanks for updating this! And please feel free to ping me with any questions on the subsequent docs PR you plan to open. 😄 |
Co-authored-by: Taylor C <41653732+tacole02@users.noreply.github.com>
Related to #10660 Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
Related to #10660 Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
Related to #10660 Signed-off-by: Nick Pillitteri <nick.pillitteri@grafana.com>
This reverts commit 5963193.
What this PR does
Remove experimental configuration flags
querier.promql-experimental-functions-enabled
andquery-frontend.block-promql-experimental-functions
used for controlling access to experimental PromQL features. Instead enable experimental PromQL functions at the engine level by default, block access to them by default, and selectively enable them at a per-user level using the middleware introduced in #9798.Justification for this change:
Which issue(s) this PR fixes or relates to
Related #9798
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]
.about-versioning.md
updated with experimental features.