Skip to content

Return intersecting labels when aggregating volume by label #10248

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

Merged
merged 3 commits into from
Aug 15, 2023

Conversation

trevorwhitney
Copy link
Collaborator

This PR changes the behavior the index/volume endpoint to return intersecting labels when requesting volume aggregating by label. Previously it only returned labels that matched selectors in the query. The old behavior is still possible using the targetLabels argument.

@trevorwhitney trevorwhitney requested a review from a team as a code owner August 14, 2023 20:39
Copy link
Contributor

@MasslessParticle MasslessParticle left a comment

Choose a reason for hiding this comment

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

LGTM.

I wonder if there's a way to generalize across the ingester and the index. The logic here is getting complex and it'd be nice if we didn't have to maintain it in two places

@trevorwhitney trevorwhitney merged commit 4d2a94e into main Aug 15, 2023
@trevorwhitney trevorwhitney deleted the trevorwhitney/intersecting-labels branch August 15, 2023 21:43
grafanabot pushed a commit that referenced this pull request Aug 23, 2023
This PR changes the behavior the `index/volume` endpoint to return
intersecting labels when requesting volume aggregating by label.
Previously it only returned labels that matched selectors in the query.
The old behavior is still possible using the `targetLabels` argument.

(cherry picked from commit 4d2a94e)
trevorwhitney added a commit that referenced this pull request Aug 23, 2023
… label (#10329)

Backport 4d2a94e from #10248

---

This PR changes the behavior the `index/volume` endpoint to return
intersecting labels when requesting volume aggregating by label.
Previously it only returned labels that matched selectors in the query.
The old behavior is still possible using the `targetLabels` argument.

Co-authored-by: Trevor Whitney <trevorjwhitney@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants