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

store: Add Request Hints for Labels APIs #3469

Merged
merged 1 commit into from Nov 19, 2020

Conversation

gouthamve
Copy link
Contributor

@gouthamve gouthamve commented Nov 19, 2020

Signed-off-by: Goutham Veeramachaneni gouthamve@gmail.com

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

Changes

This is a follow up to #3437 and this PR adds the request hints support to the LabelNames/Values APIs.

Verification

Again haven't gone beyond the unit test.

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
gouthamve added a commit to gouthamve/cortex that referenced this pull request Nov 19, 2020
This is in anticipation of thanos-io/thanos#3469 where we would need to
utilise the consistency check to query for labels as well.

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Awesome, LGTM!

@bwplotka bwplotka merged commit c73143d into thanos-io:master Nov 19, 2020
Copy link
Contributor

@pracucci pracucci 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 just noticed a typo in a error message.

reqHints := &hintspb.LabelValuesRequestHints{}
err := types.UnmarshalAny(req.Hints, reqHints)
if err != nil {
return nil, status.Error(codes.InvalidArgument, errors.Wrap(err, "unmarshal label names request hints").Error())
Copy link
Contributor

Choose a reason for hiding this comment

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

unmarshal label names request hints

Should be "label values request hints"

pracucci pushed a commit to cortexproject/cortex that referenced this pull request Nov 19, 2020
This is in anticipation of thanos-io/thanos#3469 where we would need to
utilise the consistency check to query for labels as well.

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Oghenebrume50 pushed a commit to Oghenebrume50/thanos that referenced this pull request Dec 7, 2020
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Signed-off-by: Oghenebrume50 <raphlbrume@gmail.com>
tomwilkie pushed a commit to grafana/mimir that referenced this pull request Jul 13, 2021
This is in anticipation of thanos-io/thanos#3469 where we would need to
utilise the consistency check to query for labels as well.

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Former-commit-id: 1216d00
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.

None yet

3 participants