-
Notifications
You must be signed in to change notification settings - Fork 820
Allows to specify a custom interval for splitting and caching frontend requests. #1761
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
Conversation
0bb48b5
to
99e0034
Compare
ready for review now that #1734 is merged. |
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.
Good job @cyriltovena! I left few minor comments.
85d3b07
to
fb25170
Compare
Thank you @pracucci an @gouthamve, @jtlisi What do you think ? |
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.
Good job @cyriltovena! I left a couple of last-minute comments I would be glad you could take a look before the PR will get merged.
fb25170
to
064f954
Compare
Thanks ! updated. |
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.
Thanks @cyriltovena for addressing my feedback. LGTM!
Its a shame the split_by_day.go -> split_by_interval.go rename isn't picked up by git, but LGTM. |
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
cfa9423
to
b02f0ff
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.
Looks good, thanks!
pkg/querier/queryrange/roundtrip.go
Outdated
if cfg.SplitQueriesByDay { | ||
queryRangeMiddleware = append(queryRangeMiddleware, InstrumentMiddleware("split_by_day"), SplitByDayMiddleware(limits, codec)) | ||
// SplitQueriesByDay is deprecated use SplitQueriesByInterval. | ||
if cfg.SplitQueriesByDay == true { |
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.
Could log a warning here, as we do on DeprecatedFlag()
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.
sure good idea !
Signed-off-by: Cyril Tovena <cyril.tovena@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
Currently rebased on #1734. I'll rebase it to master once merged to ease review.
/cc @gouthamve @jtlisi