Skip to content

Conversation

@waltherlee
Copy link
Contributor

@waltherlee waltherlee commented May 23, 2024

The querier seems to ignore the match param in the labels API. Requests are sent to all the stores, even if their external labels don't match the values specified in the matchers.

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Add support for match param by passing the req matchers to storeMatches. I think it should have a similar implementation to Series, where the querier select labels are excluded. It also returns an empty result if the matchers don't match the selector labels.

Verification

I added new tests and confirmed that the proxy ignored the matchers, and requests were fanning out to all the stores even if their external labels didn't match.

@waltherlee waltherlee changed the title Querier: Support match filter in labels API Query: Support match filter in labels API May 23, 2024
Signed-off-by: Walther Lee <[email protected]>
@MichaHoffmann
Copy link
Contributor

Does this duplicate #7371?

@waltherlee
Copy link
Contributor Author

@MichaHoffmann Yes, it does. Thanks for noticing!
It's funny that we noticed the fanout at about the same time. It's been there for a while.
I'm going to close this one.

@waltherlee waltherlee closed this May 23, 2024
@waltherlee waltherlee deleted the support-match-param-in-label-api branch May 23, 2024 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants