NEZ-935 fix:monitor endpoint 页面 删除 qiery,bottom boxQuery 改为 metrics ,以及 查询参数的问题

This commit is contained in:
zhangyu
2021-08-25 16:05:33 +08:00
parent 2a3df854de
commit e381ff7717
3 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ export default {
this.expressions.forEach((item, index) => {
if (item != '') {
let expr = item
this.matchContent && (expr = `${item} ${this.matchSymbol} ${this.matchContent}`)
this.matchContent && (expr = `${item} ${this.matchSymbol} "${this.matchContent}"`)
requestArr.push(this.$get('/logs/loki/api/v1/query_range?format=1&query=' + expr + '&start=' + this.$stringTimeParseToUnix(this.filterTime[0]) + '&end=' + this.$stringTimeParseToUnix(this.filterTime[1]) + '&limit=' + limit))
}
})