From 8cfe63a9bdefec9425b83479c0c793e61ed645fe Mon Sep 17 00:00:00 2001 From: Sven Grossmann Date: Tue, 4 Jun 2024 21:25:27 +0200 Subject: [PATCH] feat(detected-labels): include labels with cardinality > 1 --- pkg/querier/queryrange/roundtrip.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/querier/queryrange/roundtrip.go b/pkg/querier/queryrange/roundtrip.go index 35806abb38d47..b0472c3a347a2 100644 --- a/pkg/querier/queryrange/roundtrip.go +++ b/pkg/querier/queryrange/roundtrip.go @@ -329,7 +329,7 @@ func NewDetectedLabelsCardinalityFilter(rt queryrangebase.Handler) queryrangebas var result []*logproto.DetectedLabel for _, dl := range resp.Response.DetectedLabels { - if dl.Cardinality > 2 && dl.Cardinality < 50 { + if dl.Cardinality > 1 && dl.Cardinality < 50 { result = append(result, &logproto.DetectedLabel{Label: dl.Label, Cardinality: dl.Cardinality}) } }