From ebcb29dbf2bdf2ed5a0fcf171f0b2b18491bf8ac Mon Sep 17 00:00:00 2001 From: Trevor Whitney Date: Mon, 28 Aug 2023 09:21:57 -0600 Subject: [PATCH] fix: respect query matcher in ingester when getting label values --- pkg/ingester/ingester.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ingester/ingester.go b/pkg/ingester/ingester.go index 42e609dd9e27b..dd89ece9527d7 100644 --- a/pkg/ingester/ingester.go +++ b/pkg/ingester/ingester.go @@ -1081,7 +1081,7 @@ func (i *Ingester) Label(ctx context.Context, req *logproto.LabelRequest) (*logp from, through := model.TimeFromUnixNano(start.UnixNano()), model.TimeFromUnixNano(req.End.UnixNano()) var storeValues []string if req.Values { - storeValues, err = cs.LabelValuesForMetricName(ctx, userID, from, through, "logs", req.Name) + storeValues, err = cs.LabelValuesForMetricName(ctx, userID, from, through, "logs", req.Name, matchers...) if err != nil { return nil, err }