Skip to content

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Aug 12, 2024

What this PR does

This PR adds support for the offset modifier in instant and range vector selectors in Mimir's query engine.

For example, metric{foo="bar"} offset 2m and rate(metric{foo="bar"}[2m] offset 1h) are now supported.

Which issue(s) this PR fixes or relates to

(none)

Checklist

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

@charleskorn charleskorn marked this pull request as ready for review August 12, 2024 06:20
@charleskorn charleskorn requested review from tacole02 and a team as code owners August 12, 2024 06:20
Copy link
Contributor

@jhesketh jhesketh left a comment

Choose a reason for hiding this comment

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

lgtm, just some suggestions for extra tests

@charleskorn charleskorn force-pushed the charleskorn/mqe-offset branch from d820aed to 86e6900 Compare August 14, 2024 00:46
@charleskorn charleskorn requested a review from jhesketh August 14, 2024 00:46
@charleskorn charleskorn enabled auto-merge (squash) August 14, 2024 05:02
@charleskorn charleskorn merged commit 7bb9dd7 into main Aug 14, 2024
29 checks passed
@charleskorn charleskorn deleted the charleskorn/mqe-offset branch August 14, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants