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

feat: Implement labels & series endpoints for RF1 queriers #13974

Closed
wants to merge 2 commits into from

Conversation

benclive
Copy link
Contributor

What this PR does / why we need it:

  • Implements the series & labels endpoints on the RF-1 querier via reading the segment indexes.

Which issue(s) this PR fixes:
Fixes https://github.com/grafana/loki-private/issues/1065

@benclive benclive requested a review from a team as a code owner August 27, 2024 14:41
@benclive benclive changed the title feature: Implement labels & series endpoints for RF1 queriers feat: Implement labels & series endpoints for RF1 queriers Aug 27, 2024
Copy link
Contributor

@grobinson-grafana grobinson-grafana left a comment

Choose a reason for hiding this comment

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

Looks good to me! We don't call the unimplemented methods (that panic) do we?

return series, nil
}

func (q *Querier) matchingLabels(ctx context.Context, tenantID string, from, through int64, matchers ...*labels.Matcher) ([]string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I had a branch before PTO that was doing matching labels names leveraging faster index function

func (r *Reader) LabelNames(ctx context.Context, matchers ...*labels.Matcher) ([]string, error)

It was untested though but I think it's worth looking at.

@benclive benclive closed this Dec 2, 2024
@benclive benclive deleted the benclive/implement-labels-series-endpoints-rf1 branch December 2, 2024 10:06
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