diff --git a/nezha-fronted/src/components/common/mixin/dataList.js b/nezha-fronted/src/components/common/mixin/dataList.js index 824bda99b..27481a4b9 100644 --- a/nezha-fronted/src/components/common/mixin/dataList.js +++ b/nezha-fronted/src/components/common/mixin/dataList.js @@ -241,7 +241,11 @@ export default { if (typeof row.labels === 'string') row.labels = JSON.parse(row.labels) const labels = JSON.parse(JSON.stringify(row.labels)) this.objectSilence.matchers = [] + const filterArr = ['alertname', 'severity_id', 'severity', 'rule_type'] Object.keys(labels).forEach((key, i) => { + if (filterArr.indexOf(key) != -1) { + return + } this.objectSilence.matchers.push( { name: key, value: labels[key], regex: 0 } )