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"]