Skip to content

Commit

Permalink
fix: Fix multi_tenant querier for detected labels (#12447)
Browse files Browse the repository at this point in the history
  • Loading branch information
shantanualsi committed Apr 3, 2024
1 parent fbb8686 commit 9994f56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/querier/multi_tenant_querier.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (q *MultiTenantQuerier) DetectedFields(ctx context.Context, req *logproto.D

func (q *MultiTenantQuerier) DetectedLabels(ctx context.Context, req *logproto.DetectedLabelsRequest) (*logproto.DetectedLabelsResponse, error) {
// TODO(shantanu)
tenantIDs, err := tenant.TenantID(ctx)
tenantIDs, err := tenant.TenantIDs(ctx)
if err != nil {
return nil, err
}
Expand All @@ -297,9 +297,7 @@ func (q *MultiTenantQuerier) DetectedLabels(ctx context.Context, req *logproto.D

return &logproto.DetectedLabelsResponse{
DetectedLabels: []*logproto.DetectedLabel{
{Label: "cluster"},
{Label: "namespace"},
{Label: "instance"},
{Label: "multi_tenant_querier_not_implemented"},
},
}, nil
}
Expand Down

0 comments on commit 9994f56

Please sign in to comment.