From 24e8f6cd477d1058c45dc406c67394d28b4985ca Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 25 Nov 2021 14:18:43 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-1341=20fix=EF=BC=9A=20Panel=E5=86=85?= =?UTF-8?q?=E8=AE=BE=E7=BD=AESilence=20alert=E7=82=B9=E5=87=BB=E5=90=8E?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E5=8F=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/common/mixin/dataList.js | 4 ++++ 1 file changed, 4 insertions(+) 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 } )