Skip to content

Commit 24fdef4

Browse files
authored
Update promql.go
1 parent 08550cd commit 24fdef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

promql.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ func (pb *PromqlBuilder) Build() (string, error) {
173173
if len(pb.labels) > 0 {
174174
tmp := make([]string, len(pb.labels))
175175
for index, label := range pb.labels {
176-
tmp[index] = fmt.Sprintf("%s%s%s", label.Name, label.Matcher, label.Value)
176+
tmp[index] = fmt.Sprintf(`%s%s"%s"`, label.Name, label.Matcher, label.Value)
177177
}
178178
basicql += fmt.Sprintf("{%s}", strings.Join(tmp, ","))
179179
}

0 commit comments

Comments
 (0)