-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix range rewrite middleware failing to rewrite queries w/ offset (#3926
) * Fix range rewrite middleware failing to rewrite queries w/ offset This adds a pointer to the PrometheusEngine to the range rewrite middleware. We use this engine instance to run the query against a fake Queryable instance in order to have Prometheus calculate the actual start/end time of the query for us. This is an optional parameter to the middleware and we fall back to using the start/end time on failure. - Add related query options to QueryStorageMetadataAttributes * HFix missing options.PrometheusEngine value that was recently removed * Respond to PR comments - Refactor tests to use helper functions - Add comment to leverage dynamic lookback in prometheus when available * Move query rewriting after lookback calculation This allows us to take into account the possibility of a lookback rewrite when we calculate range rewriting * Fix linter errors * Fix some style issues
- Loading branch information
1 parent
70a91b9
commit 565c655
Showing
4 changed files
with
225 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.