Skip to content
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

Return only samples within the queried start/end time range when executing a remote read request using SAMPLES mode #8463

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

pracucci
Copy link
Collaborator

What this PR does

A remote read request executed in SAMPLES mode can return samples outside of the queried range. The reason is that, for performance reasons, in Mimir we don't have a strong guarantee that samples outside the queried time range are filtered out by the Queryable; at the end, PromQL engine will do it anyway. However, in a remote read request we may save on same returned data by filtering out samples out of the queried time range, which is what I'm proposing in this PR.

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@pracucci pracucci requested a review from a team as a code owner June 21, 2024 12:41
Copy link
Contributor

@krajorama krajorama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, looks straightforward

@dimitarvdimitrov
Copy link
Contributor

The CHANGELOG has just been cut to prepare for the next Mimir release. Please rebase main and eventually move the CHANGELOG entry added / updated in this PR to the top of the CHANGELOG document. Thanks!

…uting a remote read request using SAMPLES mode

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci force-pushed the add-readhints-support-and-fix-TestQuerierRemoteRead branch from 5271226 to 11aa2d1 Compare June 21, 2024 13:48
@pracucci pracucci enabled auto-merge (squash) June 21, 2024 13:49
@pracucci pracucci merged commit 152698c into main Jun 21, 2024
29 checks passed
@pracucci pracucci deleted the add-readhints-support-and-fix-TestQuerierRemoteRead branch June 21, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants