You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ruler): fix critical correctness issues in select merging
1. Group by expression structure — rules with different functions
(rate vs sum) on the same metric are no longer incorrectly merged.
2. Only include labels present in ALL entries — a label missing from
any rule means that rule matches all values; including it in the
merged set would make the pre-fetch too restrictive.
3. Skip when no prefetchExpr found — if no rule's matchers equal the
merged matchers (no superset rule exists), skip merging for that
metric rather than falling back to a bare selector that returns
raw series instead of computed values.
4. Disable select merging when ConcurrentEvalsEnabled is true —
SetQueryFunc is not thread-safe.
0 commit comments