diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
index 8ff3c7c2b..9b015b211 100644
--- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
+++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue
@@ -201,9 +201,9 @@ export default {
endpoint: {
endpointTabTitle: [
{ prop: 'panelTab', name: this.$t('overall.detail') },
+ { prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
{ prop: 'endpointQuery', name: 'Query' },
{ prop: 'log', name: 'Log' },
- { prop: 'endpointAlertMessage', name: this.$t('overall.alert') }
]
},
chartTemp: {
@@ -250,8 +250,8 @@ export default {
const hasLog = config && config.enable === 1
const tabs = [
{ prop: 'panelTab', name: this.$t('overall.detail') },
- { prop: 'endpointQuery', name: 'Query' },
- { prop: 'endpointAlertMessage', name: this.$t('overall.alert') }
+ { prop: 'endpointAlertMessage', name: this.$t('overall.alert') },
+ { prop: 'endpointQuery', name: 'Metrics' }
]
if (hasLog) {
tabs.push({ prop: 'log', name: 'Log' })
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue
index 9eef86495..036682a2c 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/logBottomTab.vue
@@ -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))
}
})
diff --git a/nezha-fronted/src/components/common/table/settings/endpointTable.vue b/nezha-fronted/src/components/common/table/settings/endpointTable.vue
index e16105210..47008aba9 100644
--- a/nezha-fronted/src/components/common/table/settings/endpointTable.vue
+++ b/nezha-fronted/src/components/common/table/settings/endpointTable.vue
@@ -175,7 +175,7 @@
- {{$t('overall.query')}}
+
{{$t('overall.edit')}}
{{$t('overall.delete')}}
{{$t('overall.silenceAlert')}}