diff --git a/dbm-ui/backend/db_monitor/readme.md b/dbm-ui/backend/db_monitor/readme.md index deeda43a53..5d179bc59b 100644 --- a/dbm-ui/backend/db_monitor/readme.md +++ b/dbm-ui/backend/db_monitor/readme.md @@ -63,15 +63,15 @@ python manage.py export_alarm tbinlogdumper 46679 46680 prod 策略: ``` source prod.local.env -python manage.py export_alarm mysql -python manage.py export_alarm redis +python manage.py export_alarm mysql 98056 98061 98058 +python manage.py export_alarm redis 106455 106497 python manage.py export_alarm es 98003 98004 98005 98006 98007 98008 98009 98010 python manage.py export_alarm kafka 98027 -d -c consumergroup topic python manage.py export_alarm pulsar 98065 98063 python manage.py export_alarm hdfs python manage.py export_alarm influxdb python manage.py export_alarm riak -python manage.py export_alarm cloud +python manage.py export_alarm cloud 100371 100372 100373 113059 100368 100369 117596 114983 ``` diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/cloud/DBHA\345\205\250\345\261\200\347\233\221\346\216\247.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/cloud/DBHA\345\205\250\345\261\200\347\233\221\346\216\247.json" new file mode 100644 index 0000000000..dfb1382099 --- /dev/null +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/cloud/DBHA\345\205\250\345\261\200\347\233\221\346\216\247.json" @@ -0,0 +1,258 @@ +{ + "bk_biz_id": 0, + "name": "DBHA全局监控", + "db_type": "cloud", + "details": { + "bk_biz_id": "", + "name": "DBHA全局监控", + "source": "dbm", + "scenario": "component", + "type": "monitor", + "items": [ + { + "name": "COUNT(dbha_global_monitor-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_global_monitor", + "functions": [], + "result_table_id": "bkmonitor_event_{event_data_id}", + "agg_method": "COUNT", + "agg_interval": 300, + "agg_dimension": [ + "server_ip", + "uncovered_city_ids", + "uncovered_num", + "cloud_id", + "appid" + ], + "agg_condition": [], + "custom_event_name": "dbha_global_monitor", + "name": "dbha_global_monitor" + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 1, + "config": [ + [ + { + "method": "gte", + "threshold": 1 + } + ] + ], + "unit_prefix": "" + } + ], + "metric_type": "event" + } + ], + "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": 115072, + "user_groups": [], + "user_type": "main", + "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": true, + "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": [ + "cloud_id", + "server_ip", + "uncovered_city_ids", + "uncovered_num" + ], + "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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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{{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_CLOUD" + ], + "app": "", + "path": "", + "priority": 0, + "priority_group_key": "", + "edit_allowed": true, + "metric_type": "event", + "data_source_type": "自定义事件", + "is_enabled": true + }, + "is_enabled": true, + "monitor_indicator": "COUNT(dbha_global_monitor-dbm_report_channel)", + "version": 1, + "alert_source": "event", + "custom_conditions": [], + "export_at": "2024-05-31T17:28:31+08:00" +} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/cloud/DBHA\345\255\230\346\264\273.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/cloud/DBHA\345\255\230\346\264\273.json" new file mode 100644 index 0000000000..fead1bef69 --- /dev/null +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/cloud/DBHA\345\255\230\346\264\273.json" @@ -0,0 +1,263 @@ +{ + "bk_biz_id": 0, + "name": "DBHA存活", + "db_type": "cloud", + "details": { + "bk_biz_id": "", + "name": "DBHA存活", + "source": "dbm", + "scenario": "host_process", + "type": "monitor", + "items": [ + { + "name": "AVG(进程启动时间)", + "no_data_config": { + "level": 1, + "continuous": 5, + "is_enabled": true, + "agg_dimension": [ + "bk_target_ip" + ] + }, + "target": [], + "expression": "a", + "functions": [], + "origin_sql": "", + "query_configs": [ + { + "data_source_label": "bk_monitor", + "data_type_label": "time_series", + "alias": "a", + "metric_id": "bk_monitor.process.perf.cpu_start_time", + "functions": [], + "result_table_id": "process.perf", + "agg_method": "AVG", + "agg_interval": 60, + "agg_dimension": [ + "bk_target_ip", + "appid" + ], + "agg_condition": [ + { + "key": "process_name", + "value": [ + "dbha" + ], + "method": "eq", + "condition": "and", + "dimension_name": "进程名" + } + ], + "metric_field": "cpu_start_time", + "unit": "", + "name": "进程启动时间" + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 1, + "config": [ + [ + { + "method": "lte", + "threshold": 0 + } + ] + ], + "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": 113103, + "user_groups": [], + "user_type": "main", + "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": true, + "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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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_CLOUD" + ], + "app": "", + "path": "", + "priority": 0, + "priority_group_key": "", + "edit_allowed": true, + "metric_type": "time_series", + "data_source_type": "监控采集指标", + "is_enabled": true + }, + "is_enabled": true, + "monitor_indicator": "AVG(进程启动时间)", + "version": 1, + "alert_source": "time_series", + "custom_conditions": [], + "export_at": "2024-05-31T17:28:31+08:00" +} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/cloud/dbha\344\272\214\346\254\241\346\216\242\346\265\213\345\244\261\350\264\245\345\221\212\350\255\246.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/cloud/dbha\344\272\214\346\254\241\346\216\242\346\265\213\345\244\261\350\264\245\345\221\212\350\255\246.json" new file mode 100644 index 0000000000..ea50c49292 --- /dev/null +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/cloud/dbha\344\272\214\346\254\241\346\216\242\346\265\213\345\244\261\350\264\245\345\221\212\350\255\246.json" @@ -0,0 +1,257 @@ +{ + "bk_biz_id": 0, + "name": "dbha二次探测失败告警", + "db_type": "cloud", + "details": { + "bk_biz_id": "", + "name": "dbha二次探测失败告警", + "source": "dbm", + "scenario": "component", + "type": "monitor", + "items": [ + { + "name": "COUNT(dbha_detect_ssh_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_ssh_fail", + "functions": [], + "result_table_id": "bkmonitor_event_{event_data_id}", + "agg_method": "COUNT", + "agg_interval": 60, + "agg_dimension": [ + "appid", + "bk_cloud_id", + "cluster", + "machine_type", + "server_ip", + "server_port", + "status", + "target" + ], + "agg_condition": [], + "custom_event_name": "dbha_detect_ssh_fail", + "name": "dbha_detect_ssh_fail" + } + ], + "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": 1 + }, + "recovery_config": { + "check_window": 1, + "status_setter": "recovery" + }, + "connector": "and" + } + ], + "actions": [], + "notice": { + "config_id": 117797, + "user_groups": [], + "user_type": "main", + "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": true, + "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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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通知人:{{alarm.receivers}}\n{{content.content}}\n{{content.current_value}}\n{{content.biz}}\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_CLOUD", + "DBM_DBHA" + ], + "app": "", + "path": "", + "priority": 0, + "priority_group_key": "5e141a4e1b34c18d", + "edit_allowed": true, + "metric_type": "time_series", + "data_source_type": "自定义事件", + "is_enabled": true + }, + "is_enabled": true, + "monitor_indicator": "COUNT(dbha_detect_ssh_fail-dbm_report_channel)", + "version": 1, + "alert_source": "event", + "custom_conditions": [], + "export_at": "2024-05-31T17:28:31+08:00" +} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/es/ES \351\233\206\347\276\244\347\212\266\346\200\201.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/es/ES \351\233\206\347\276\244\347\212\266\346\200\201.json" index 2efd93fbed..a6ec9e8e80 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/es/ES \351\233\206\347\276\244\347\212\266\346\200\201.json" +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/es/ES \351\233\206\347\276\244\347\212\266\346\200\201.json" @@ -31,6 +31,7 @@ "metric_id": "bk_monitor.exporter_dbm_elasticsearch_exporter.__default__.elasticsearch_cluster_health_status", "functions": [], "result_table_id": "exporter_dbm_elasticsearch_exporter.__default__", + "data_label": "exporter_dbm_elasticsearch_exporter", "agg_method": "MAX", "agg_interval": 60, "agg_dimension": [ @@ -78,7 +79,7 @@ "level": 1, "expression": "", "trigger_config": { - "count": 1, + "count": 5, "uptime": { "calendars": [], "time_ranges": [ @@ -88,7 +89,7 @@ } ] }, - "check_window": 5 + "check_window": 10 }, "recovery_config": { "check_window": 5, @@ -103,8 +104,8 @@ "user_groups": [], "user_type": "main", "signal": [ - "abnormal", - "no_data" + "no_data", + "abnormal" ], "options": { "end_time": "23:59:59", @@ -166,47 +167,11 @@ "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" - } + "need_biz_converge": false }, "chart_image_enabled": true, "exclude_notice_ways": { + "ack": [], "closed": [], "recovered": [] }, @@ -254,7 +219,7 @@ "app": "", "path": "", "priority": 0, - "priority_group_key": "bd247cf73db33087", + "priority_group_key": "", "edit_allowed": true, "metric_type": "time_series", "data_source_type": "监控采集指标", @@ -262,8 +227,8 @@ }, "is_enabled": true, "monitor_indicator": "MAX(elasticsearch_cluster_health_status)", - "version": 22, + "version": 23, "alert_source": "time_series", "custom_conditions": [], - "export_at": "2024-03-28T21:19:53+08:00" + "export_at": "2024-05-31T17:49:36+08:00" } \ 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 e665d66550..e921e0898f 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" @@ -10,7 +10,7 @@ "type": "monitor", "items": [ { - "name": "COUNT(mysql-lock)", + "name": "COUNT(mysql-lock-dbm_report_channel)", "no_data_config": { "level": 2, "continuous": 10, @@ -32,12 +32,12 @@ "agg_method": "COUNT", "agg_interval": 60, "agg_dimension": [ - "bk_cloud_id", "instance_host", - "instance_role", - "machine_type", "cluster_domain", + "machine_type", + "instance_role", "instance_port", + "bk_cloud_id", "appid", "bk_target_service_instance_id" ], @@ -45,8 +45,7 @@ { "key": "instance_role", "value": [ - "master", - "orphan" + "master" ], "method": "include", "condition": "and", @@ -101,8 +100,9 @@ ], "actions": [], "notice": { - "config_id": 40763, + "config_id": 97531, "user_groups": [], + "user_type": "main", "signal": [ "abnormal", "no_data" @@ -113,7 +113,11 @@ "assign_mode": [ "by_rule" ], - "upgrade_config": {}, + "upgrade_config": { + "is_enabled": false, + "user_groups": [], + "upgrade_interval": 1440 + }, "converge_config": { "count": 1, "condition": [ @@ -163,47 +167,11 @@ "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" - } + "need_biz_converge": false }, "chart_image_enabled": true, "exclude_notice_ways": { + "ack": [], "closed": [], "recovered": [] }, @@ -246,14 +214,16 @@ "app": "", "path": "", "priority": 0, - "priority_group_key": "4c7e9750af045fd7", + "priority_group_key": "", + "edit_allowed": true, "metric_type": "event", "data_source_type": "自定义事件", "is_enabled": true }, "is_enabled": true, - "monitor_indicator": "COUNT(mysql-lock)", - "version": 22, + "monitor_indicator": "COUNT(mysql-lock-dbm_report_channel)", + "version": 24, "alert_source": "event", - "custom_conditions": [] + "custom_conditions": [], + "export_at": "2024-05-31T17:47:22+08:00" } \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql Partition.json b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql Partition.json index d3d74c4b4a..6820062732 100644 --- a/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql Partition.json +++ b/dbm-ui/backend/db_monitor/tpls/alarm/mysql/Mysql Partition.json @@ -33,7 +33,9 @@ "agg_interval": 300, "agg_dimension": [ "cluster_domain", - "appid" + "appid", + "db_app_abbr", + "bk_biz_name" ], "agg_condition": [], "custom_event_name": "partition", @@ -84,8 +86,9 @@ ], "actions": [], "notice": { - "config_id": 40925, + "config_id": 97533, "user_groups": [], + "user_type": "main", "signal": [ "no_data", "abnormal" @@ -150,44 +153,7 @@ "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" - } + "need_biz_converge": false }, "chart_image_enabled": true, "exclude_notice_ways": { @@ -238,13 +204,15 @@ "path": "", "priority": 0, "priority_group_key": "", + "edit_allowed": true, "metric_type": "event", "data_source_type": "自定义事件", "is_enabled": true }, "is_enabled": true, "monitor_indicator": "COUNT(partition-dbm_report_channel)", - "version": 22, + "version": 23, "alert_source": "event", - "custom_conditions": [] + "custom_conditions": [], + "export_at": "2024-05-31T17:50:28+08:00" } \ 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 31535d616c..da2573f7af 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" @@ -10,7 +10,7 @@ "type": "monitor", "items": [ { - "name": "COUNT(proxy-user-list)", + "name": "COUNT(proxy-user-list-dbm_report_channel)", "no_data_config": { "level": 2, "continuous": 10, @@ -90,11 +90,12 @@ ], "actions": [], "notice": { - "config_id": 40807, + "config_id": 97536, "user_groups": [], + "user_type": "main", "signal": [ - "abnormal", - "no_data" + "no_data", + "abnormal" ], "options": { "end_time": "23:59:59", @@ -102,7 +103,11 @@ "assign_mode": [ "by_rule" ], - "upgrade_config": {}, + "upgrade_config": { + "is_enabled": false, + "user_groups": [], + "upgrade_interval": 1440 + }, "converge_config": { "count": 1, "condition": [ @@ -152,47 +157,11 @@ "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" - } + "need_biz_converge": false }, "chart_image_enabled": true, "exclude_notice_ways": { + "ack": [], "closed": [], "recovered": [] }, @@ -235,14 +204,16 @@ "app": "", "path": "", "priority": 0, - "priority_group_key": "06a4da3c4962774b", + "priority_group_key": "", + "edit_allowed": true, "metric_type": "event", "data_source_type": "自定义事件", "is_enabled": true }, "is_enabled": true, - "monitor_indicator": "COUNT(proxy-user-list)", - "version": 23, + "monitor_indicator": "COUNT(proxy-user-list-dbm_report_channel)", + "version": 24, "alert_source": "event", - "custom_conditions": [] + "custom_conditions": [], + "export_at": "2024-05-31T17:47:22+08:00" } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis(TendisCache)\345\256\236\344\276\213\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/Redis(TendisCache)\345\256\236\344\276\213\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" index 94a7b1d92f..f6a0e843cb 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis(TendisCache)\345\256\236\344\276\213\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/Redis(TendisCache)\345\256\236\344\276\213\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" @@ -10,7 +10,7 @@ "type": "monitor", "items": [ { - "name": "[TendisCache]实例内存使用率", + "name": "Redis(TendisCache)实例内存使用率", "no_data_config": { "level": 2, "continuous": 10, @@ -26,11 +26,10 @@ "data_source_label": "prometheus", "data_type_label": "time_series", "alias": "a", - "metric_id": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid,bk_target_service_instance_id) (bkmonitor:exporter_dbm_re", + "metric_id": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid) (100*bkmonitor:exporter_db", "functions": [], - "promql": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid,bk_target_service_instance_id) (bkmonitor:exporter_dbm_redis_exporter:redis_memory_used_bytes{instance_role=\"redis_master\",cluster_type=\"TwemproxyRedisInstance\"}/bkmonitor:exporter_dbm_redis_exporter:redis_config_maxmemory{instance_role=\"redis_master\",cluster_type=\"TwemproxyRedisInstance\"})", - "agg_interval": 60, - "name": "" + "promql": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid) (100*bkmonitor:exporter_dbm_redis_exporter:redis_memory_used_bytes{instance_role=\"redis_master\",cluster_type=\"TwemproxyRedisInstance\"}/bkmonitor:exporter_dbm_redis_exporter:redis_config_maxmemory{instance_role=\"redis_master\",cluster_type=\"TwemproxyRedisInstance\"})", + "agg_interval": 60 } ], "algorithms": [ @@ -112,11 +111,12 @@ ], "actions": [], "notice": { - "config_id": 47121, + "config_id": 106278, "user_groups": [], + "user_type": "main", "signal": [ - "abnormal", - "no_data" + "no_data", + "abnormal" ], "options": { "end_time": "23:59:59", @@ -178,44 +178,7 @@ "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" - } + "need_biz_converge": false }, "chart_image_enabled": true, "exclude_notice_ways": { @@ -227,9 +190,7 @@ "unit": "percent", "count": 10, "timedelta": 5, - "dimensions": [ - "bk_target_ip" - ], + "dimensions": [], "is_enabled": false } }, @@ -265,13 +226,15 @@ "path": "", "priority": 0, "priority_group_key": "", + "edit_allowed": true, "metric_type": "time_series", "data_source_type": "Prometheus", "is_enabled": true }, "is_enabled": true, - "monitor_indicator": "[TendisCache]实例内存使用率", - "version": 22, + "monitor_indicator": "Redis(TendisCache)实例内存使用率", + "version": 23, "alert_source": "time_series", - "custom_conditions": [] + "custom_conditions": [], + "export_at": "2024-05-31T17:49:13+08:00" } \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis(TendisSSD)\345\256\236\344\276\213\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/Redis(TendisSSD)\345\256\236\344\276\213\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" index 88dfec1636..0c962308d9 100644 --- "a/dbm-ui/backend/db_monitor/tpls/alarm/redis/Redis(TendisSSD)\345\256\236\344\276\213\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/Redis(TendisSSD)\345\256\236\344\276\213\345\206\205\345\255\230\344\275\277\347\224\250\347\216\207.json" @@ -10,7 +10,7 @@ "type": "monitor", "items": [ { - "name": "[TendisSSD]实例内存使用率", + "name": "Redis(TendisSSD)实例内存使用率", "no_data_config": { "level": 2, "continuous": 10, @@ -26,11 +26,10 @@ "data_source_label": "prometheus", "data_type_label": "time_series", "alias": "a", - "metric_id": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid,bk_target_service_instance_id) (bkmonitor:exporter_dbm_re", + "metric_id": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid) (100*bkmonitor:exporter_db", "functions": [], - "promql": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid,bk_target_service_instance_id) (bkmonitor:exporter_dbm_redis_exporter:redis_memory_used_bytes{instance_role=\"redis_master\",cluster_type=\"TwemproxyTendisSSDInstance\"}/bkmonitor:exporter_dbm_redis_exporter:redis_config_maxmemory{instance_role=\"redis_master\",cluster_type=\"TwemproxyTendisSSDInstance\"})", - "agg_interval": 60, - "name": "" + "promql": "max by (app,cluster_domain,bk_target_ip,instance,instance_role,cluster_type,bk_target_cloud_id,appid) (100*bkmonitor:exporter_dbm_redis_exporter:redis_memory_used_bytes{instance_role=\"redis_master\",cluster_type=\"TwemproxyTendisSSDInstance\"}/bkmonitor:exporter_dbm_redis_exporter:redis_config_maxmemory{instance_role=\"redis_master\",cluster_type=\"TwemproxyTendisSSDInstance\"})", + "agg_interval": 60 } ], "algorithms": [ @@ -112,11 +111,12 @@ ], "actions": [], "notice": { - "config_id": 47112, + "config_id": 106320, "user_groups": [], + "user_type": "main", "signal": [ - "abnormal", - "no_data" + "no_data", + "abnormal" ], "options": { "end_time": "23:59:59", @@ -178,44 +178,7 @@ "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" - } + "need_biz_converge": false }, "chart_image_enabled": true, "exclude_notice_ways": { @@ -227,9 +190,7 @@ "unit": "percent", "count": 10, "timedelta": 5, - "dimensions": [ - "bk_target_ip" - ], + "dimensions": [], "is_enabled": false } }, @@ -264,14 +225,16 @@ "app": "", "path": "", "priority": 0, - "priority_group_key": "", + "priority_group_key": "c975bb0317125464", + "edit_allowed": true, "metric_type": "time_series", "data_source_type": "Prometheus", "is_enabled": true }, "is_enabled": true, - "monitor_indicator": "[TendisSSD]实例内存使用率", - "version": 22, + "monitor_indicator": "Redis(TendisSSD)实例内存使用率", + "version": 23, "alert_source": "time_series", - "custom_conditions": [] + "custom_conditions": [], + "export_at": "2024-05-31T17:49:13+08:00" } \ No newline at end of file