fix(monitor): support or filter of query (#21170)

This commit is contained in:
Zexi Li
2024-09-05 20:10:24 +08:00
committed by GitHub
parent e3598bceab
commit 5c70df90d7
5 changed files with 46 additions and 26 deletions
+1 -2
View File
@@ -15,7 +15,6 @@ package promql
import (
"fmt"
"sort"
"strings"
"time"
@@ -193,6 +192,6 @@ func (node *VectorSelector) String() string {
if len(labelStrings) == 0 {
return fmt.Sprintf("%s%s", node.Name, offset)
}
sort.Strings(labelStrings)
// sort.Strings(labelStrings)
return fmt.Sprintf("%s{%s}%s", node.Name, strings.Join(labelStrings, ","), offset)
}