Skip to content

Commit

Permalink
fix(monitor): unknown column returned when group by name tag (#21868)
Browse files Browse the repository at this point in the history
  • Loading branch information
zexi authored Dec 20, 2024
1 parent 234d40d commit 40395dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/monitor/tsdb/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func FormatRawName(idx int, name string, groupByTags []string, tags map[string]s
for _, tagKey := range tagKeys.List() {
if tagV, ok := tags[tagKey]; ok {
gHint := genHint(tagKey, tagV)
if strings.Contains(tagKey, "name") {
if strings.Contains(tagKey, "name") && !sets.NewString(groupByTags...).Has(tagKey) {
hintNames.Insert(gHint)
} else {
hints.Insert(gHint)
Expand Down

0 comments on commit 40395dc

Please sign in to comment.