From f1f2f6af309c2f8bf630e8624f6145832e732a4d Mon Sep 17 00:00:00 2001 From: durant <826035498@qq.com> Date: Tue, 3 Sep 2024 21:15:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(backend):=20=E7=9B=91=E6=8E=A7=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E7=BB=B4=E5=BA=A6=E9=97=AE=E9=A2=98=20#6649?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\344\273\266\350\277\207\345\244\247.json" | 4 +- ...\350\241\214\345\274\202\345\270\270.json" | 4 +- .../alarm/mysql/MySQL Routine Definer.json | 4 +- ...\346\255\245\345\274\202\345\270\270.json" | 4 +- .../alarm/mysql/MySQL Trigger Definer.json | 4 +- .../tpls/alarm/mysql/MySQL View Definer.json | 4 +- ...\346\223\216\346\243\200\346\237\245.json" | 4 +- ...\345\255\227\347\254\246\351\233\206.json" | 4 +- ...346\216\247-\350\207\264\345\221\275.json" | 4 +- ...346\216\247-\351\242\204\350\255\246.json" | 4 +- .../MySQL \346\263\250\345\205\245.json" | 4 +- ...\346\216\245\345\244\261\350\264\245.json" | 5 +- ...\345\277\227\350\277\207\345\244\232.json" | 4 +- ...\347\275\256\345\274\202\345\270\270.json" | 4 +- .../MySQL \351\224\201\350\241\250.json" | 4 +- ...\350\264\245\347\255\226\347\225\245.json" | 5 +- ...\345\212\237\347\255\226\347\225\245.json" | 5 +- .../Proxy \345\220\216\347\253\257.json" | 4 +- ...\347\231\275\345\220\215\345\215\225.json" | 4 +- ...\350\264\245\347\255\226\347\225\245.json" | 9 +- ...\345\212\237\347\255\226\347\225\245.json" | 9 +- ...\344\273\266\345\221\212\350\255\246.json" | 262 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 262 --------------- ...\346\235\203\345\244\261\350\264\245.json" | 302 ----------------- ...\344\273\266\345\221\212\350\255\246.json" | 252 -------------- ...\344\273\266\345\221\212\350\255\246.json" | 263 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 264 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 252 -------------- ...\344\273\266\345\221\212\350\255\246.json" | 253 -------------- ...\344\273\266\345\221\212\350\255\246.json" | 262 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 262 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 252 -------------- ...\344\273\266\345\221\212\350\255\246.json" | 253 -------------- ...\347\216\207\345\221\212\350\255\246.json" | 307 ----------------- ...\344\275\277\347\224\250\347\216\207.json" | 307 ----------------- ...\344\275\277\347\224\250\347\216\207.json" | 307 ----------------- ...\344\275\277\347\224\250\347\216\207.json" | 309 ------------------ ...\344\275\277\347\224\250\347\216\207.json" | 307 ----------------- ...\344\273\266\345\221\212\350\255\246.json" | 263 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 263 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 261 --------------- ...\344\273\266\345\221\212\350\255\246.json" | 261 --------------- 42 files changed, 51 insertions(+), 5770 deletions(-) rename "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" => "dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" (97%) rename "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" => "dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" (97%) delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.error\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.warn\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\346\216\242\346\265\213\351\211\264\346\235\203\345\244\261\350\264\245.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis login\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.error\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy.login\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.error\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_login\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272CPU\344\275\277\347\224\250\347\216\207\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\215\225\346\240\270CPU\344\275\277\347\224\250\347\216\207.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230IO\344\275\277\347\224\250\347\216\207.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230\345\256\271\351\207\217\344\275\277\347\224\250\347\216\207.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.error\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.error\344\272\213\344\273\266\345\221\212\350\255\246.json" delete mode 100644 "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Ext3 \346\226\207\344\273\266\350\277\207\345\244\247.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Ext3 \346\226\207\344\273\266\350\277\207\345\244\247.json" index 791427eb9e..117ba2e9ae 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Ext3 \346\226\207\344\273\266\350\277\207\345\244\247.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Ext3 \346\226\207\344\273\266\350\277\207\345\244\247.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL Ext3 文件过大", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(ext3-check)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Monitor \346\211\247\350\241\214\345\274\202\345\270\270.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Monitor \346\211\247\350\241\214\345\274\202\345\270\270.json" index abd7ba347b..5b90bf87c8 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Monitor \346\211\247\350\241\214\345\274\202\345\270\270.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Monitor \346\211\247\350\241\214\345\274\202\345\270\270.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL Monitor 执行异常", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(monitor-internal-error)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Routine Definer.json b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Routine Definer.json index a2cd0716fc..011dcd7b8c 100644 --- a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Routine Definer.json +++ b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Routine Definer.json @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL Routine Definer", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(routine-definer)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Slave \345\220\214\346\255\245\345\274\202\345\270\270.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Slave \345\220\214\346\255\245\345\274\202\345\270\270.json" index f042cf341a..ef987a6cf4 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Slave \345\220\214\346\255\245\345\274\202\345\270\270.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Slave \345\220\214\346\255\245\345\274\202\345\270\270.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL Slave 同步异常", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -246,7 +246,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(slave-status)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Trigger Definer.json b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Trigger Definer.json index 648f0817b9..978f39a70e 100644 --- a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Trigger Definer.json +++ b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL Trigger Definer.json @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL Trigger Definer", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(trigger-definer)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL View Definer.json b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL View Definer.json index 8fd8e44284..c1366919fe 100644 --- a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL View Definer.json +++ b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL View Definer.json @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL View Definer", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(view-definer)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\255\230\345\202\250\345\274\225\346\223\216\346\243\200\346\237\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\255\230\345\202\250\345\274\225\346\223\216\346\243\200\346\237\245.json" index 69a68c449e..efffb71dce 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\255\230\345\202\250\345\274\225\346\223\216\346\243\200\346\237\245.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\255\230\345\202\250\345\274\225\346\223\216\346\243\200\346\237\245.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 存储引擎检查", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(engine)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\272\223\345\255\227\347\254\246\351\233\206.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\272\223\345\255\227\347\254\246\351\233\206.json" index 23d00323c0..b9f3767886 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\272\223\345\255\227\347\254\246\351\233\206.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \345\272\223\345\255\227\347\254\246\351\233\206.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 库字符集", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(character-consistency)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\350\207\264\345\221\275.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\350\207\264\345\221\275.json" index a519b85cf3..7a5b1efa14 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\350\207\264\345\221\275.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\350\207\264\345\221\275.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 日志监控-致命", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(mysql-err-critical)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\351\242\204\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\351\242\204\350\255\246.json" index 132578a489..b21be56e6f 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\351\242\204\350\255\246.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\227\245\345\277\227\347\233\221\346\216\247-\351\242\204\350\255\246.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 日志监控-预警", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(mysql-err-notice)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\263\250\345\205\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\263\250\345\205\245.json" index feabba36f1..da69689d5a 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\263\250\345\205\245.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \346\263\250\345\205\245.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 注入", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(mysql-inject)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\345\244\261\350\264\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\345\244\261\350\264\245.json" index 3fa54b4573..206056bf77 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\345\244\261\350\264\245.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\345\244\261\350\264\245.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 连接失败", "source": "dbm", - "scenario": "other_rt", + "scenario": "os", "type": "monitor", "items": [ { @@ -36,6 +36,7 @@ "instance_port", "cluster_domain", "bk_cloud_id", + "bk_target_ip", "machine_type", "instance_role", "appid" @@ -241,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(db-up)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\346\227\245\345\277\227\350\277\207\345\244\232.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\346\227\245\345\277\227\350\277\207\345\244\232.json" index 7df32b920f..1ce0c00d14 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\346\227\245\345\277\227\350\277\207\345\244\232.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \350\277\236\346\216\245\346\227\245\345\277\227\350\277\207\345\244\232.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 连接日志过多", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(mysql-connlog-size)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\205\215\347\275\256\345\274\202\345\270\270.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\205\215\347\275\256\345\274\202\345\270\270.json" index 3d5a7ac9b1..a8fe19f8f7 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\205\215\347\275\256\345\274\202\345\270\270.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\205\215\347\275\256\345\274\202\345\270\270.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 配置异常", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(mysql-config-diff)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\224\201\350\241\250.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\224\201\350\241\250.json" index e921e0898f..daa315326d 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\224\201\350\241\250.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/MySQL \351\224\201\350\241\250.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "MySQL 锁表", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -222,7 +222,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(mysql-lock-dbm_report_channel)", - "version": 24, + "version": 25, "alert_source": "event", "custom_conditions": [], "export_at": "2024-05-31T17:47:22+08:00" diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\345\244\261\350\264\245\347\255\226\347\225\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\345\244\261\350\264\245\347\255\226\347\225\245.json" index bca1f7345a..252d4b73f8 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\345\244\261\350\264\245\347\255\226\347\225\245.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\345\244\261\350\264\245\347\255\226\347\225\245.json" @@ -237,7 +237,8 @@ }, "labels": [ "DBM", - "DBM_MYSQL" + "DBM_MYSQL", + "DBHA_SWITCH" ], "app": "", "path": "", @@ -249,7 +250,7 @@ }, "is_enabled": true, "monitor_indicator": "a", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\346\210\220\345\212\237\347\255\226\347\225\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\346\210\220\345\212\237\347\255\226\347\225\245.json" index 811fcd6274..08dd78b906 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\346\210\220\345\212\237\347\255\226\347\225\245.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql dbha\345\210\207\346\215\242mysql\346\210\220\345\212\237\347\255\226\347\225\245.json" @@ -237,7 +237,8 @@ }, "labels": [ "DBM", - "DBM_MYSQL" + "DBM_MYSQL", + "DBHA_SWITCH" ], "app": "", "path": "", @@ -249,7 +250,7 @@ }, "is_enabled": true, "monitor_indicator": "a", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \345\220\216\347\253\257.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \345\220\216\347\253\257.json" index 986c143bcc..628fcbf607 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \345\220\216\347\253\257.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \345\220\216\347\253\257.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "Proxy 后端", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -242,7 +242,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(proxy-backend)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \347\231\275\345\220\215\345\215\225.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \347\231\275\345\220\215\345\215\225.json" index da2573f7af..8b20abe1ef 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \347\231\275\345\220\215\345\215\225.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Proxy \347\231\275\345\220\215\345\215\225.json" @@ -6,7 +6,7 @@ "bk_biz_id": "", "name": "Proxy 白名单", "source": "dbm", - "scenario": "other_rt", + "scenario": "component", "type": "monitor", "items": [ { @@ -212,7 +212,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(proxy-user-list-dbm_report_channel)", - "version": 24, + "version": 25, "alert_source": "event", "custom_conditions": [], "export_at": "2024-05-31T17:47:22+08:00" diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" similarity index 97% rename from "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" rename to "dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" index d08db1d919..67a8a88644 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\345\244\261\350\264\245\347\255\226\347\225\245.json" @@ -1,10 +1,10 @@ { "bk_biz_id": 0, - "name": "Redis dbha\u5207\u6362redis\u5931\u8d25\u7b56\u7565", + "name": "Redis dbha切换redis失败策略", "db_type": "redis", "details": { "bk_biz_id": "", - "name": "Redis dbha\u5207\u6362redis\u5931\u8d25\u7b56\u7565", + "name": "Redis dbha切换redis失败策略", "source": "dbm", "scenario": "component", "type": "monitor", @@ -237,7 +237,8 @@ }, "labels": [ "DBM", - "DBM_REDIS" + "DBM_REDIS", + "DBHA_SWITCH" ], "app": "", "path": "", @@ -249,7 +250,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(dbha_redis_switch_err-dbm_report_channel)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" similarity index 97% rename from "dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" rename to "dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" index 6337d7c76f..d294c8eaba 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis dbha\345\210\207\346\215\242redis\346\210\220\345\212\237\347\255\226\347\225\245.json" @@ -1,10 +1,10 @@ { "bk_biz_id": 0, - "name": "Redis dbha\u5207\u6362redis\u6210\u529f\u7b56\u7565", + "name": "Redis dbha切换redis成功策略", "db_type": "redis", "details": { "bk_biz_id": "", - "name": "Redis dbha\u5207\u6362redis\u6210\u529f\u7b56\u7565", + "name": "Redis dbha切换redis成功策略", "source": "dbm", "scenario": "component", "type": "monitor", @@ -237,7 +237,8 @@ }, "labels": [ "DBM", - "DBM_REDIS" + "DBM_REDIS", + "DBHA_SWITCH" ], "app": "", "path": "", @@ -249,7 +250,7 @@ }, "is_enabled": true, "monitor_indicator": "COUNT(dbha_redis_switch_succ-dbm_report_channel)", - "version": 22, + "version": 23, "alert_source": "event", "custom_conditions": [] } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.error\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.error\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 93d5a76e9f..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.error\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,262 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis cluster_state.error\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis cluster_state.error\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_cluster_state-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_cluster_state", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "app" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "error" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_cluster_state", - "name": "redis_cluster_state" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40949, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "fef52003efe05fb4", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_cluster_state-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.warn\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.warn\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index e88b5f8517..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis cluster_state.warn\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,262 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis cluster_state.warn\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis cluster_state.warn\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_cluster_state-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_cluster_state", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "app" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "warning" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_cluster_state", - "name": "redis_cluster_state" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40778, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 3600, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_cluster_state-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\346\216\242\346\265\213\351\211\264\346\235\203\345\244\261\350\264\245.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\346\216\242\346\265\213\351\211\264\346\235\203\345\244\261\350\264\245.json" deleted file mode 100644 index 313d93dd8e..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis dbha\346\216\242\346\265\213\351\211\264\346\235\203\345\244\261\350\264\245.json" +++ /dev/null @@ -1,302 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis dbha\u63a2\u6d4b\u9274\u6743\u5931\u8d25", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis dbha\u63a2\u6d4b\u9274\u6743\u5931\u8d25", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(dbha_detect_auth_fail-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.dbha_detect_auth_fail", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "bk_cloud_id", - "cluster", - "machine_type", - "server_ip", - "server_port", - "status", - "target", - "appid" - ], - "agg_condition": [], - "custom_event_name": "dbha_detect_auth_fail", - "name": "dbha_detect_auth_fail" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 3, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 3, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [ - { - "id": 121064, - "config_id": 84239, - "user_groups": [ - 77017 - ], - "signal": [ - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "converge_config": { - "count": 1, - "condition": [ - { - "value": [ - "self" - ], - "dimension": "action_info" - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "skip_when_success", - "need_biz_converge": true - } - }, - "relate_type": "ACTION", - "config": { - "id": 84239, - "name": "\u3010\u5feb\u6377\u5957\u9910\u3011\u5fae\u4fe1\u53d1\u9001 CPU \u4f7f\u7528\u7387 Top 10 \u8fdb\u7a0b", - "desc": "\u7cfb\u7edf\u5185\u7f6e\u5feb\u6377\u5957\u9910", - "bk_biz_id": "5005578", - "plugin_id": "4", - "execute_config": { - "template_detail": { - "${top_count}": "10", - "${biz_cc_id}": "{{target.business.bk_biz_id}}", - "${receiver}": "{{action_instance.assignees}}", - "${job_ip_list}": "{{target.host.bk_host_innerip}}", - "${job_account}": "root" - }, - "template_id": 44326, - "timeout": 600 - } - } - } - ], - "notice": { - "config_id": 98884, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 7200, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(dbha_detect_auth_fail-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis login\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis login\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 5a3f901299..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis login\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,252 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis login\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis login\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_login-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_login", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "app" - ], - "agg_condition": [], - "custom_event_name": "redis_login", - "name": "redis_login" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40782, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "222764078761ce05", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_login-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.error\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.error\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 7f8c987231..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.error\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,263 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis persist.error\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis persist.error\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_persist-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_persist", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "bk_cloud_id", - "instance", - "target", - "instance_role", - "cluster_domain", - "appid", - "ap" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "error" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_persist", - "name": "redis_persist" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40788, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_persist-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 8b1f01d04c..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis persist.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,264 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis persist.warning\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis persist.warning\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_persist-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_persist", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "bk_cloud_id", - "instance", - "target", - "instance_role", - "cluster_domain", - "app", - "app_name", - "appid" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "warning" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_persist", - "name": "redis_persist" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40742, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 3600, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_persist-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy.login\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy.login\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 1347bbd278..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy.login\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,252 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis predixy.login\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis predixy.login\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(predixy_login-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.predixy_login", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "app" - ], - "agg_condition": [], - "custom_event_name": "predixy_login", - "name": "predixy_login" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40751, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(predixy_login-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 489ece8c52..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis predixy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,253 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis predixy_restart\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis predixy_restart\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(predixy_restart-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.predixy_restart", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "app", - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "warn_level" - ], - "agg_condition": [], - "custom_event_name": "predixy_restart", - "name": "predixy_restart" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 41027, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 3600, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(predixy_restart-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.error\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.error\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 4b3713774c..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.error\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,262 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis sync.error\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis sync.error\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_sync-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_sync", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "app" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "error" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_sync", - "name": "redis_sync" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40774, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_sync-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 6b7b62b81f..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis sync.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,262 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis sync.warning\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis sync.warning\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "other_rt", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_sync-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_sync", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "app" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "warning" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_sync", - "name": "redis_sync" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40800, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 3600, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_sync-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_login\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_login\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index e888253636..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_login\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,252 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis twemproxy_login\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis twemproxy_login\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(twemproxy_login-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.twemproxy_login", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "app", - "appid", - "cluster_domain", - "target", - "instance_role", - "instance" - ], - "agg_condition": [], - "custom_event_name": "twemproxy_login", - "name": "twemproxy_login" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 41025, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(twemproxy_login-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 3900b983f5..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis twemproxy_restart\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,253 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis twemproxy_restart\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis twemproxy_restart\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(twemproxy_restart-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.twemproxy_restart", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "app", - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "warn_level" - ], - "agg_condition": [], - "custom_event_name": "twemproxy_restart", - "name": "twemproxy_restart" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "event" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 41030, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 3600, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "event", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(twemproxy_restart-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272CPU\344\275\277\347\224\250\347\216\207\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272CPU\344\275\277\347\224\250\347\216\207\345\221\212\350\255\246.json" deleted file mode 100644 index faf64c23e2..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272CPU\344\275\277\347\224\250\347\216\207\345\221\212\350\255\246.json" +++ /dev/null @@ -1,307 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis \u4e3b\u673aCPU\u4f7f\u7528\u7387\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis \u4e3b\u673aCPU\u4f7f\u7528\u7387\u544a\u8b66", - "source": "dbm", - "scenario": "os", - "type": "monitor", - "items": [ - { - "name": "MIN(CPU\u4f7f\u7528\u7387)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "bk_monitor", - "data_type_label": "time_series", - "alias": "a", - "metric_id": "bk_monitor.dbm_system.cpu_summary.usage", - "functions": [], - "result_table_id": "dbm_system.cpu_summary", - "agg_method": "MIN", - "agg_interval": 60, - "agg_dimension": [ - "app", - "bk_target_ip", - "instance_role", - "cluster_type", - "cluster_domain", - "bk_target_cloud_id", - "appid" - ], - "agg_condition": [ - { - "key": "instance_role", - "value": [ - "redis_master" - ], - "method": "eq", - "dimension_name": "dbm_meta instance role" - }, - { - "key": "db_type", - "value": [ - "redis" - ], - "method": "eq", - "condition": "and", - "dimension_name": "db_type" - } - ], - "metric_field": "usage", - "unit": "percent", - "name": "CPU\u4f7f\u7528\u7387" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 90 - } - ] - ], - "unit_prefix": "%" - }, - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 80 - } - ] - ], - "unit_prefix": "%" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - }, - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40798, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "time_series", - "data_source_type": "\u76d1\u63a7\u91c7\u96c6\u6307\u6807", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "MIN(CPU\u4f7f\u7528\u7387)", - "version": 22, - "alert_source": "time_series", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" deleted file mode 100644 index 7ae711d8e5..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" +++ /dev/null @@ -1,307 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis \u4e3b\u673a\u5185\u5b58\u4f7f\u7528\u7387", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis \u4e3b\u673a\u5185\u5b58\u4f7f\u7528\u7387", - "source": "dbm", - "scenario": "os", - "type": "monitor", - "items": [ - { - "name": "MIN(\u5e94\u7528\u7a0b\u5e8f\u5185\u5b58\u4f7f\u7528\u5360\u6bd4)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "bk_monitor", - "data_type_label": "time_series", - "alias": "a", - "metric_id": "bk_monitor.dbm_system.mem.pct_used", - "functions": [], - "result_table_id": "dbm_system.mem", - "agg_method": "MIN", - "agg_interval": 60, - "agg_dimension": [ - "app", - "bk_target_ip", - "instance_role", - "cluster_type", - "cluster_domain", - "bk_target_cloud_id", - "appid" - ], - "agg_condition": [ - { - "key": "instance_role", - "value": [ - "redis_master" - ], - "method": "eq", - "dimension_name": "dbm_meta instance role" - }, - { - "key": "db_type", - "value": [ - "redis" - ], - "method": "eq", - "condition": "and", - "dimension_name": "db_type" - } - ], - "metric_field": "pct_used", - "unit": "percent", - "name": "\u5e94\u7528\u7a0b\u5e8f\u5185\u5b58\u4f7f\u7528\u5360\u6bd4" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 90 - } - ] - ], - "unit_prefix": "%" - }, - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 95 - } - ] - ], - "unit_prefix": "%" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - }, - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40768, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}\n{{action_instance.assignees}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "time_series", - "data_source_type": "\u76d1\u63a7\u91c7\u96c6\u6307\u6807", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "MIN(\u5e94\u7528\u7a0b\u5e8f\u5185\u5b58\u4f7f\u7528\u5360\u6bd4)", - "version": 22, - "alert_source": "time_series", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\215\225\346\240\270CPU\344\275\277\347\224\250\347\216\207.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\215\225\346\240\270CPU\344\275\277\347\224\250\347\216\207.json" deleted file mode 100644 index 13677d5f19..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\345\215\225\346\240\270CPU\344\275\277\347\224\250\347\216\207.json" +++ /dev/null @@ -1,307 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis \u4e3b\u673a\u5355\u6838CPU\u4f7f\u7528\u7387", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis \u4e3b\u673a\u5355\u6838CPU\u4f7f\u7528\u7387", - "source": "dbm", - "scenario": "os", - "type": "monitor", - "items": [ - { - "name": "MAX(CPU\u5355\u6838\u4f7f\u7528\u7387)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "bk_monitor", - "data_type_label": "time_series", - "alias": "a", - "metric_id": "bk_monitor.dbm_system.cpu_detail.usage", - "functions": [], - "result_table_id": "dbm_system.cpu_detail", - "agg_method": "MAX", - "agg_interval": 60, - "agg_dimension": [ - "app", - "bk_target_ip", - "instance_role", - "cluster_type", - "cluster_domain", - "bk_target_cloud_id", - "appid" - ], - "agg_condition": [ - { - "key": "instance_role", - "value": [ - "redis_master" - ], - "method": "eq", - "dimension_name": "dbm_meta instance role" - }, - { - "key": "db_type", - "value": [ - "redis" - ], - "method": "eq", - "condition": "and", - "dimension_name": "db_type" - } - ], - "metric_field": "usage", - "unit": "percent", - "name": "CPU\u5355\u6838\u4f7f\u7528\u7387" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 80 - } - ] - ], - "unit_prefix": "%" - }, - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 90 - } - ] - ], - "unit_prefix": "%" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - }, - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40746, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "time_series", - "data_source_type": "\u76d1\u63a7\u91c7\u96c6\u6307\u6807", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "MAX(CPU\u5355\u6838\u4f7f\u7528\u7387)", - "version": 22, - "alert_source": "time_series", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230IO\344\275\277\347\224\250\347\216\207.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230IO\344\275\277\347\224\250\347\216\207.json" deleted file mode 100644 index 89542dec19..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230IO\344\275\277\347\224\250\347\216\207.json" +++ /dev/null @@ -1,309 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis \u4e3b\u673a\u78c1\u76d8IO\u4f7f\u7528\u7387", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis \u4e3b\u673a\u78c1\u76d8IO\u4f7f\u7528\u7387", - "source": "dbm", - "scenario": "os", - "type": "monitor", - "items": [ - { - "name": "MIN(I/O\u4f7f\u7528\u7387)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "bk_monitor", - "data_type_label": "time_series", - "alias": "a", - "metric_id": "bk_monitor.dbm_system.io.util", - "functions": [], - "result_table_id": "dbm_system.io", - "agg_method": "MIN", - "agg_interval": 60, - "agg_dimension": [ - "app", - "bk_target_ip", - "instance_role", - "cluster_type", - "cluster_domain", - "bk_target_cloud_id", - "appid" - ], - "agg_condition": [ - { - "key": "instance_role", - "value": [ - "redis_master" - ], - "method": "eq", - "dimension_name": "dbm_meta instance role" - }, - { - "key": "db_type", - "value": [ - "redis" - ], - "method": "eq", - "condition": "and", - "dimension_name": "db_type" - } - ], - "metric_field": "util", - "unit": "percentunit", - "name": "I/O\u4f7f\u7528\u7387" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 90 - } - ] - ], - "unit_prefix": "%" - }, - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 80 - } - ] - ], - "unit_prefix": "%" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - }, - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40772, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [ - "bk_target_ip" - ], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "time_series", - "data_source_type": "\u76d1\u63a7\u91c7\u96c6\u6307\u6807", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "MIN(I/O\u4f7f\u7528\u7387)", - "version": 22, - "alert_source": "time_series", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230\345\256\271\351\207\217\344\275\277\347\224\250\347\216\207.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230\345\256\271\351\207\217\344\275\277\347\224\250\347\216\207.json" deleted file mode 100644 index f2b4fc46ec..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \344\270\273\346\234\272\347\243\201\347\233\230\345\256\271\351\207\217\344\275\277\347\224\250\347\216\207.json" +++ /dev/null @@ -1,307 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis \u4e3b\u673a\u78c1\u76d8\u5bb9\u91cf\u4f7f\u7528\u7387", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis \u4e3b\u673a\u78c1\u76d8\u5bb9\u91cf\u4f7f\u7528\u7387", - "source": "dbm", - "scenario": "os", - "type": "monitor", - "items": [ - { - "name": "MIN(\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u7387)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "bk_monitor", - "data_type_label": "time_series", - "alias": "a", - "metric_id": "bk_monitor.dbm_system.disk.in_use", - "functions": [], - "result_table_id": "dbm_system.disk", - "agg_method": "MIN", - "agg_interval": 60, - "agg_dimension": [ - "app", - "bk_target_ip", - "instance_role", - "cluster_type", - "cluster_domain", - "bk_target_cloud_id", - "appid" - ], - "agg_condition": [ - { - "key": "instance_role", - "value": [ - "redis_master" - ], - "method": "eq", - "dimension_name": "dbm_meta instance role" - }, - { - "key": "db_type", - "value": [ - "redis" - ], - "method": "eq", - "condition": "and", - "dimension_name": "db_type" - } - ], - "metric_field": "in_use", - "unit": "percent", - "name": "\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u7387" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 90 - } - ] - ], - "unit_prefix": "%" - }, - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 80 - } - ] - ], - "unit_prefix": "%" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - }, - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 40767, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "time_series", - "data_source_type": "\u76d1\u63a7\u91c7\u96c6\u6307\u6807", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "MIN(\u78c1\u76d8\u7a7a\u95f4\u4f7f\u7528\u7387)", - "version": 22, - "alert_source": "time_series", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.error\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.error\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 543461d199..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.error\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,263 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis \u65e5\u5fd7.error\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis \u65e5\u5fd7.error\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_log-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_log", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "app", - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "warn_level" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "error" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_log", - "name": "redis_log" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 41032, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 1800, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "time_series", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_log-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index a7401733c6..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/Redis \346\227\245\345\277\227.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,263 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "Redis \u65e5\u5fd7.warning\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "Redis \u65e5\u5fd7.warning\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(redis_log-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.redis_log", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "app", - "appid", - "cluster_domain", - "target", - "instance_role", - "instance", - "warn_level" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "warning" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "redis_log", - "name": "redis_log" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 2, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 41031, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 3600, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "", - "metric_type": "time_series", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(redis_log-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.error\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.error\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 2e2419ef19..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.error\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,261 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "TendisSSD binlog.error\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "TendisSSD binlog.error\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(tendis_binlog_len-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.tendis_binlog_len", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "error" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "tendis_binlog_len", - "name": "tendis_binlog_len" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 1, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 1, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 41029, - "user_groups": [], - "signal": [ - "abnormal", - "no_data" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 7200, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "f900f6d4536a67f9", - "metric_type": "time_series", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(tendis_binlog_len-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" deleted file mode 100644 index 279ccfca52..0000000000 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/v1/TendisSSD binlog.warning\344\272\213\344\273\266\345\221\212\350\255\246.json" +++ /dev/null @@ -1,261 +0,0 @@ -{ - "bk_biz_id": 0, - "name": "TendisSSD binlog.warning\u4e8b\u4ef6\u544a\u8b66", - "db_type": "redis", - "details": { - "bk_biz_id": "", - "name": "TendisSSD binlog.warning\u4e8b\u4ef6\u544a\u8b66", - "source": "dbm", - "scenario": "component", - "type": "monitor", - "items": [ - { - "name": "COUNT(tendis_binlog_len-dbm_report_channel)", - "no_data_config": { - "level": 2, - "continuous": 10, - "is_enabled": false, - "agg_dimension": [] - }, - "target": [], - "expression": "a", - "functions": [], - "origin_sql": "", - "query_configs": [ - { - "data_source_label": "custom", - "data_type_label": "event", - "alias": "a", - "metric_id": "custom.event.bkmonitor_event_{event_data_id}.tendis_binlog_len", - "functions": [], - "result_table_id": "bkmonitor_event_{event_data_id}", - "agg_method": "COUNT", - "agg_interval": 60, - "agg_dimension": [ - "appid", - "cluster_domain", - "target", - "instance_role", - "instance" - ], - "agg_condition": [ - { - "key": "warn_level", - "value": [ - "warning" - ], - "method": "eq", - "condition": "and", - "dimension_name": "warn_level" - } - ], - "custom_event_name": "tendis_binlog_len", - "name": "tendis_binlog_len" - } - ], - "algorithms": [ - { - "type": "Threshold", - "level": 2, - "config": [ - [ - { - "method": "gte", - "threshold": 1 - } - ] - ], - "unit_prefix": "" - } - ], - "metric_type": "time_series" - } - ], - "detects": [ - { - "level": 2, - "expression": "", - "trigger_config": { - "count": 1, - "uptime": { - "calendars": [], - "time_ranges": [ - { - "end": "23:59", - "start": "00:00" - } - ] - }, - "check_window": 5 - }, - "recovery_config": { - "check_window": 5, - "status_setter": "recovery" - }, - "connector": "and" - } - ], - "actions": [], - "notice": { - "config_id": 41026, - "user_groups": [], - "signal": [ - "no_data", - "abnormal" - ], - "options": { - "end_time": "23:59:59", - "start_time": "00:00:00", - "assign_mode": [ - "by_rule" - ], - "upgrade_config": { - "is_enabled": false, - "user_groups": [], - "upgrade_interval": 1440 - }, - "converge_config": { - "count": 1, - "condition": [ - { - "dimension": "strategy_id", - "value": [ - "self" - ] - }, - { - "dimension": "dimensions", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - }, - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - } - ], - "timedelta": 60, - "is_enabled": true, - "converge_func": "collect", - "need_biz_converge": false, - "sub_converge_config": { - "timedelta": 60, - "count": 2, - "condition": [ - { - "dimension": "bk_biz_id", - "value": [ - "self" - ] - }, - { - "dimension": "notice_receiver", - "value": [ - "self" - ] - }, - { - "dimension": "notice_way", - "value": [ - "self" - ] - }, - { - "dimension": "alert_level", - "value": [ - "self" - ] - }, - { - "dimension": "signal", - "value": [ - "self" - ] - } - ], - "converge_func": "collect_alarm" - } - }, - "chart_image_enabled": true, - "exclude_notice_ways": { - "ack": [], - "closed": [], - "recovered": [] - }, - "noise_reduce_config": { - "unit": "percent", - "count": 10, - "timedelta": 5, - "dimensions": [], - "is_enabled": false - } - }, - "relate_type": "NOTICE", - "config": { - "need_poll": true, - "notify_interval": 7200, - "interval_notify_mode": "standard", - "template": [ - { - "signal": "abnormal", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "recovered", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - }, - { - "signal": "closed", - "message_tmpl": "{{content.level}}\n{{content.begin_time}}\n{{content.time}}\n{{content.duration}}\n{{content.target_type}}\n{{content.data_source}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n通知人:{{alarm.receivers}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n{{content.related_info}}", - "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" - } - ] - } - }, - "labels": [ - "DBM", - "DBM_REDIS", - "REDIS" - ], - "app": "", - "path": "", - "priority": 0, - "priority_group_key": "f900f6d4536a67f9", - "metric_type": "time_series", - "data_source_type": "\u81ea\u5b9a\u4e49\u4e8b\u4ef6", - "is_enabled": true - }, - "is_enabled": true, - "monitor_indicator": "COUNT(tendis_binlog_len-dbm_report_channel)", - "version": 22, - "alert_source": "event", - "custom_conditions": [] -} \ No newline at end of file