-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 a flag to disable step alignment middleware #3356
Conversation
Seems the E2E test failure is not related to this pr. But I am curious, can some maintainer help me re-trigger the GH CI? |
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.
LGTM, just small nits. (:
cmd/thanos/query_frontend.go
Outdated
@@ -57,6 +57,9 @@ func registerQueryFrontend(app *extkingpin.App) { | |||
cfg.http.registerFlag(cmd) | |||
|
|||
// Query range tripperware flags. | |||
cmd.Flag("query-range.align-querier-with-step", "Mutate incoming queries to align their start and end with their step."). |
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.
cmd.Flag("query-range.align-querier-with-step", "Mutate incoming queries to align their start and end with their step."). | |
cmd.Flag("query-range.align-range-with-step", "Mutate incoming queries to align their start and end with their step for better cache-ability. Note: Grafana dashboards do that by default.") |
pkg/queryfrontend/config.go
Outdated
@@ -139,6 +139,7 @@ type QueryRangeConfig struct { | |||
ResultsCacheConfig *queryrange.ResultsCacheConfig | |||
CachePathOrContent extflag.PathOrContent | |||
|
|||
AlignQueriesWithStep bool |
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.
AlignQueriesWithStep bool | |
AlignRangeWithStep bool |
Done. PTAL again @bwplotka |
Signed-off-by: Ben Ye <yb532204897@gmail.com>
Signed-off-by: Ben Ye <yb532204897@gmail.com>
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.
LGTM, thanks!
* add a flag to disable step alignment middleware Signed-off-by: Ben Ye <yb532204897@gmail.com> * add changelog Signed-off-by: Ben Ye <yb532204897@gmail.com> * add logic Signed-off-by: Ben Ye <yb532204897@gmail.com> * fix lint Signed-off-by: Ben Ye <yb532204897@gmail.com> Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
Signed-off-by: Ben Ye yb532204897@gmail.com
Changes
Fix #3353
Verification