Skip to content

Commit 5ab4ec9

Browse files
author
tangjiawei
committed
#830 custom template add string_code_map
1 parent 4ddcfdc commit 5ab4ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monitor-server/services/db/dashboard.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func ReplacePromQlKeyword(promQl, metric string, host *m.EndpointNewTable, tagLi
218218
if i == 0 {
219219
promQl = getTagPromQl(tagObj, originPromQl)
220220
} else {
221-
promQl = promQl + " and " + getTagPromQl(tagObj, originPromQl)
221+
promQl = "(" + promQl + ") and (" + getTagPromQl(tagObj, originPromQl) + ")"
222222
}
223223
}
224224
} else {

0 commit comments

Comments
 (0)