forked from cortexproject/cortex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix query offset issue on indvidual recording rules
This is a follow-up to cortexproject#6085, which added support for setting the `queryOffset` field on individual recording rules, as well as a global per-tenant ruler query offset that should be used when no individual rule offset is set. It turns out that compatability code to convert from a protobuf RuleGroup to a prometheus RuleGroup that's consumed by the ruler was coercing null value query offsets to explicit 0s, which meant that no rules would ever fallback to the global-offset. This PR fixes that issue, and cleans up handling of the query offset in a few other ruler files. Signed-off-by: Kevin Ingelman <ki@buoyant.io>
- Loading branch information
Showing
4 changed files
with
28 additions
and
13 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
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