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: fix stringlabel build errors for prometheus store api #6861

Conversation

MichaHoffmann
Copy link
Contributor

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

Changes

  • Make PrometheusStore compatible with stringlabels by removing its dependency on slice labels

Verification

  • Existing tests still pass

finalLbls := labelpb.ExtendSortedLabels(seriesLbls, externalLbls)
finalLbls = append(finalLbls, dedup.PushdownMarker)
b.Add(dedup.PushdownMarker.Name, dedup.PushdownMarker.Value)
b.Sort()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this manual sort for the builder? Thought it is sorted.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Builder is sorted, Scratchbuilder is not!

@yeya24 yeya24 merged commit 429cfd6 into thanos-io:main Oct 31, 2023
12 of 14 checks passed
rabenhorst pushed a commit to rabenhorst/thanos that referenced this pull request Nov 15, 2023
douglascamata pushed a commit to douglascamata/thanos that referenced this pull request Dec 13, 2023
douglascamata pushed a commit to douglascamata/thanos that referenced this pull request Dec 13, 2023
fpetkovski pushed a commit to fpetkovski/thanos that referenced this pull request Oct 31, 2024
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.

3 participants