Skip to content

Commit

Permalink
feat(detected-labels): include labels with cardinality > 1 (#13128)
Browse files Browse the repository at this point in the history
Co-authored-by: Trevor Whitney <trevorjwhitney@gmail.com>
  • Loading branch information
svennergr and trevorwhitney authored Jun 4, 2024
1 parent 3a9f50f commit 8be8364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/querier/queryrange/roundtrip.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
}
}
Expand Down

0 comments on commit 8be8364

Please sign in to comment.