From 5da1a522581399d2b90df51f68b79dfeef0ba9e0 Mon Sep 17 00:00:00 2001 From: durant <826035498@qq.com> Date: Mon, 25 Mar 2024 21:05:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(backend):=20kafka=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E6=B6=88=E8=B4=B9=E7=BB=84=E5=BB=B6=E8=BF=9F=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E6=9D=A1=E4=BB=B6=20#3685?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...66\210\350\264\271\347\273\204\345\273\266\350\277\237.json" | 2 -- dbm-ui/backend/db_periodic_task/local_tasks/db_monitor.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka \346\266\210\350\264\271\347\273\204\345\273\266\350\277\237.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka \346\266\210\350\264\271\347\273\204\345\273\266\350\277\237.json" index a611ee964c..3c23f89bd1 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka \346\266\210\350\264\271\347\273\204\345\273\266\350\277\237.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka \346\266\210\350\264\271\347\273\204\345\273\266\350\277\237.json" @@ -272,7 +272,6 @@ { "key": "consumergroup", "value": [ - "gsin" ], "method": "eq", "condition": "and", @@ -281,7 +280,6 @@ { "key": "topic", "value": [ - "sinsin" ], "method": "eq", "condition": "and", diff --git a/dbm-ui/backend/db_periodic_task/local_tasks/db_monitor.py b/dbm-ui/backend/db_periodic_task/local_tasks/db_monitor.py index 6591f6e1ff..245babd8ce 100644 --- a/dbm-ui/backend/db_periodic_task/local_tasks/db_monitor.py +++ b/dbm-ui/backend/db_periodic_task/local_tasks/db_monitor.py @@ -85,7 +85,7 @@ def sync_plat_monitor_policy(): dirs.remove(skip_dir) for alarm_tpl in files: - with open(os.path.join(root, alarm_tpl), "r") as f: + with open(os.path.join(root, alarm_tpl), "r", encoding="utf-8") as f: try: template_dict = json.loads(f.read()) policy_name = template_dict["name"]