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

execution: dont reset aggregation hints in call #524

Closed

Conversation

MichaHoffmann
Copy link
Contributor

@MichaHoffmann MichaHoffmann commented Mar 6, 2025

We would like to have grouping hints in select calls for expressions
like "sum by (foo) (rate(metric[5m]))" too.

We would like to have grouping hints in select calls for expressions
like "sum by (foo) (rate(metric[5m]))" too.

Signed-off-by: Michael Hoffmann <[email protected]>
@MichaHoffmann MichaHoffmann force-pushed the mhoffmann/dont-reset-aggregtaion-hints-in-call branch from 23c4f4f to 3924c6d Compare March 6, 2025 07:35
@MichaHoffmann
Copy link
Contributor Author

MichaHoffmann commented Mar 6, 2025

Note - this is tricky because "topk(10, X)" ~ has all labels; "sum(X)" ~ has no labels; both have same groupings; meaning that we cannot use this for projection hints.

topk(10, rate(X[5m])) ~ has all labels still
sum(rate(X[5m])) ~ has no labels

same grouping hints are set for both

@MichaHoffmann
Copy link
Contributor Author

I think this is not well defined sadly

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.

1 participant