diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka AbnormalControllerState.json b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka AbnormalControllerState.json new file mode 100644 index 0000000000..7358fd3d78 --- /dev/null +++ b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka AbnormalControllerState.json @@ -0,0 +1,243 @@ +{ + "bk_biz_id": 0, + "name": "Kafka AbnormalControllerState", + "db_type": "kafka", + "details": { + "bk_biz_id": "", + "name": "Kafka AbnormalControllerState", + "source": "dbm", + "scenario": "component", + "type": "monitor", + "items": [ + { + "name": "Kafka AbnormalControllerState", + "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": "", + "functions": [], + "promql": "sum by (appid, app, cluster_domain) (sum_over_time(bkmonitor:pushgateway_dbm_kafka_bkpull:kafka_controller_kafkacontroller_activecontrollercount{instance_role=\"broker\"}[1m]))", + "agg_interval": 60 + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 2, + "config": [ + [ + { + "method": "neq", + "threshold": 1 + } + ] + ], + "unit_prefix": "" + } + ], + "metric_type": "time_series" + } + ], + "detects": [ + { + "level": 2, + "expression": "", + "trigger_config": { + "count": 6, + "uptime": { + "calendars": [], + "time_ranges": [ + { + "end": "23:59", + "start": "00:00" + } + ] + }, + "check_window": 10 + }, + "recovery_config": { + "check_window": 5, + "status_setter": "recovery" + }, + "connector": "and" + } + ], + "actions": [], + "notice": { + "config_id": 48125, + "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{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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通知人:{{alarm.receivers}}\n{{content.related_info}}", + "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" + } + ] + } + }, + "labels": [ + "DBM", + "DBM_KAFKA", + "Kafka" + ], + "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": "Kafka AbnormalControllerState", + "version": 1, + "alert_source": "time_series", + "custom_conditions": [], + "export_at": "2024-12-13T15:07:45+08:00" +} \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka OfflineLogDirectoryCount.json b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka OfflineLogDirectoryCount.json new file mode 100644 index 0000000000..6f81c8d24b --- /dev/null +++ b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka OfflineLogDirectoryCount.json @@ -0,0 +1,243 @@ +{ + "bk_biz_id": 0, + "name": "Kafka OfflineLogDirectoryCount", + "db_type": "kafka", + "details": { + "bk_biz_id": "", + "name": "Kafka OfflineLogDirectoryCount", + "source": "dbm", + "scenario": "component", + "type": "monitor", + "items": [ + { + "name": "Kafka OfflineLogDirectoryCount", + "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": "", + "functions": [], + "promql": "max by (appid, app, instance_role, cluster_domain, bk_target_ip, bk_target_cloud_id) (max_over_time(bkmonitor:pushgateway_dbm_kafka_bkpull:kafka_log_logmanager_offlinelogdirectorycount{instance_role=\"broker\"}[1m]))", + "agg_interval": 60 + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 2, + "config": [ + [ + { + "method": "gt", + "threshold": 0 + } + ] + ], + "unit_prefix": "" + } + ], + "metric_type": "time_series" + } + ], + "detects": [ + { + "level": 2, + "expression": "", + "trigger_config": { + "count": 6, + "uptime": { + "calendars": [], + "time_ranges": [ + { + "end": "23:59", + "start": "00:00" + } + ] + }, + "check_window": 10 + }, + "recovery_config": { + "check_window": 5, + "status_setter": "recovery" + }, + "connector": "and" + } + ], + "actions": [], + "notice": { + "config_id": 48124, + "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{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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通知人:{{alarm.receivers}}\n{{content.related_info}}", + "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" + } + ] + } + }, + "labels": [ + "DBM", + "DBM_KAFKA", + "Kafka" + ], + "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": "Kafka OfflineLogDirectoryCount", + "version": 1, + "alert_source": "time_series", + "custom_conditions": [], + "export_at": "2024-12-13T15:07:45+08:00" +} \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka OfflinePartitions.json b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka OfflinePartitions.json new file mode 100644 index 0000000000..34c78c539c --- /dev/null +++ b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka OfflinePartitions.json @@ -0,0 +1,243 @@ +{ + "bk_biz_id": 0, + "name": "Kafka OfflinePartitions", + "db_type": "kafka", + "details": { + "bk_biz_id": "", + "name": "Kafka OfflinePartitions", + "source": "dbm", + "scenario": "component", + "type": "monitor", + "items": [ + { + "name": "Kafka OfflinePartitions", + "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": "", + "functions": [], + "promql": "sum by (appid, app, instance_role, cluster_domain, bk_target_ip, bk_target_cloud_id) (sum_over_time(bkmonitor:pushgateway_dbm_kafka_bkpull:kafka_controller_kafkacontroller_offlinepartitionscount{instance_role=\"broker\"}[1m]))", + "agg_interval": 60 + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 2, + "config": [ + [ + { + "method": "gt", + "threshold": 0 + } + ] + ], + "unit_prefix": "" + } + ], + "metric_type": "time_series" + } + ], + "detects": [ + { + "level": 2, + "expression": "", + "trigger_config": { + "count": 6, + "uptime": { + "calendars": [], + "time_ranges": [ + { + "end": "23:59", + "start": "00:00" + } + ] + }, + "check_window": 10 + }, + "recovery_config": { + "check_window": 5, + "status_setter": "recovery" + }, + "connector": "and" + } + ], + "actions": [], + "notice": { + "config_id": 48122, + "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{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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通知人:{{alarm.receivers}}\n{{content.related_info}}", + "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" + } + ] + } + }, + "labels": [ + "DBM", + "DBM_KAFKA", + "Kafka" + ], + "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": "Kafka OfflinePartitions", + "version": 1, + "alert_source": "time_series", + "custom_conditions": [], + "export_at": "2024-12-13T15:07:45+08:00" +} \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka UnderMinIsrPartitionCount.json b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka UnderMinIsrPartitionCount.json new file mode 100644 index 0000000000..cec4c7a902 --- /dev/null +++ b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka UnderMinIsrPartitionCount.json @@ -0,0 +1,243 @@ +{ + "bk_biz_id": 0, + "name": "Kafka UnderMinIsrPartitionCount", + "db_type": "kafka", + "details": { + "bk_biz_id": "", + "name": "Kafka UnderMinIsrPartitionCount", + "source": "dbm", + "scenario": "component", + "type": "monitor", + "items": [ + { + "name": "Kafka UnderMinIsrPartitionCount", + "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": "", + "functions": [], + "promql": "max by (appid, app, instance_role, cluster_domain, bk_target_ip, bk_target_cloud_id) (max_over_time(bkmonitor:pushgateway_dbm_kafka_bkpull:kafka_server_replicamanager_underminisrpartitioncount{instance_role=\"broker\"}[1m]))", + "agg_interval": 60 + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 2, + "config": [ + [ + { + "method": "gt", + "threshold": 0 + } + ] + ], + "unit_prefix": "" + } + ], + "metric_type": "time_series" + } + ], + "detects": [ + { + "level": 2, + "expression": "", + "trigger_config": { + "count": 6, + "uptime": { + "calendars": [], + "time_ranges": [ + { + "end": "23:59", + "start": "00:00" + } + ] + }, + "check_window": 10 + }, + "recovery_config": { + "check_window": 5, + "status_setter": "recovery" + }, + "connector": "and" + } + ], + "actions": [], + "notice": { + "config_id": 48123, + "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": [], + "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{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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通知人:{{alarm.receivers}}\n{{content.related_info}}", + "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" + } + ] + } + }, + "labels": [ + "DBM", + "DBM_KAFKA", + "Kafka" + ], + "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": "Kafka UnderMinIsrPartitionCount", + "version": 1, + "alert_source": "time_series", + "custom_conditions": [], + "export_at": "2024-12-13T15:07:45+08:00" +} \ No newline at end of file diff --git a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka UnderReplicatedPartitions.json b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka UnderReplicatedPartitions.json new file mode 100644 index 0000000000..db8467402f --- /dev/null +++ b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka UnderReplicatedPartitions.json @@ -0,0 +1,243 @@ +{ + "bk_biz_id": 0, + "name": "Kafka under replicated partitions", + "db_type": "kafka", + "details": { + "bk_biz_id": "", + "name": "Kafka under replicated partitions", + "source": "dbm", + "scenario": "component", + "type": "monitor", + "items": [ + { + "name": "Kafka under replicated partitions", + "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": "", + "functions": [], + "promql": "min by (appid, app, instance_role, cluster_domain, bk_target_ip, bk_target_cloud_id) (min_over_time(bkmonitor:pushgateway_dbm_kafka_bkpull:kafka_server_replicamanager_underreplicatedpartitions{instance_role=\"broker\"}[1m]))", + "agg_interval": 60 + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 2, + "config": [ + [ + { + "method": "gt", + "threshold": 0 + } + ] + ], + "unit_prefix": "" + } + ], + "metric_type": "time_series" + } + ], + "detects": [ + { + "level": 2, + "expression": "", + "trigger_config": { + "count": 10, + "uptime": { + "calendars": [], + "time_ranges": [ + { + "end": "23:59", + "start": "00:00" + } + ] + }, + "check_window": 15 + }, + "recovery_config": { + "check_window": 5, + "status_setter": "recovery" + }, + "connector": "and" + } + ], + "actions": [], + "notice": { + "config_id": 48121, + "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{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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通知人:{{alarm.receivers}}\n{{content.related_info}}", + "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" + } + ] + } + }, + "labels": [ + "DBM", + "DBM_KAFKA", + "Kafka" + ], + "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": "Kafka under replicated partitions", + "version": 1, + "alert_source": "time_series", + "custom_conditions": [], + "export_at": "2024-12-13T15:07:45+08:00" +} \ No newline at end of file diff --git "a/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka \344\270\273\346\234\272\346\264\273\350\267\203\347\275\221\347\273\234\350\277\236\346\216\245\346\225\260.json" "b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka \344\270\273\346\234\272\346\264\273\350\267\203\347\275\221\347\273\234\350\277\236\346\216\245\346\225\260.json" new file mode 100644 index 0000000000..a34f49ade0 --- /dev/null +++ "b/dbm-ui/backend/db_monitor/tpls/alarm/kafka/Kafka \344\270\273\346\234\272\346\264\273\350\267\203\347\275\221\347\273\234\350\277\236\346\216\245\346\225\260.json" @@ -0,0 +1,278 @@ +{ + "bk_biz_id": 0, + "name": "Kafka 主机活跃网络连接数", + "db_type": "kafka", + "details": { + "bk_biz_id": "", + "name": "Kafka 主机活跃网络连接数", + "source": "dbm", + "scenario": "os", + "type": "monitor", + "items": [ + { + "name": "Kafka 主机活跃网络连接数", + "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": "", + "functions": [], + "promql": "max by (appid, app, instance_role, cluster_domain, bk_target_ip, bk_target_cloud_id) (max_over_time(bkmonitor:dbm_system:netstat:cur_tcp_estab{db_type=\"kafka\"}[1m]))", + "agg_interval": 60 + } + ], + "algorithms": [ + { + "type": "Threshold", + "level": 2, + "config": [ + [ + { + "method": "gte", + "threshold": 5000 + } + ] + ], + "unit_prefix": "" + }, + { + "type": "Threshold", + "level": 1, + "config": [ + [ + { + "method": "gte", + "threshold": 10000 + } + ] + ], + "unit_prefix": "" + } + ], + "metric_type": "time_series" + } + ], + "detects": [ + { + "level": 2, + "expression": "", + "trigger_config": { + "count": 6, + "uptime": { + "calendars": [], + "time_ranges": [ + { + "end": "23:59", + "start": "00:00" + } + ] + }, + "check_window": 10 + }, + "recovery_config": { + "check_window": 5, + "status_setter": "recovery" + }, + "connector": "and" + }, + { + "level": 1, + "expression": "", + "trigger_config": { + "count": 6, + "uptime": { + "calendars": [], + "time_ranges": [ + { + "end": "23:59", + "start": "00:00" + } + ] + }, + "check_window": 10 + }, + "recovery_config": { + "check_window": 5, + "status_setter": "recovery" + }, + "connector": "and" + } + ], + "actions": [], + "notice": { + "config_id": 48120, + "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{{content.content}}\n{{content.current_value}}\n{{content.biz}}\n{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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{{content.target}}\n{{content.dimension}}\n{{content.detail}}\n{{content.assign_detail}}\n通知人:{{alarm.receivers}}\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通知人:{{alarm.receivers}}\n{{content.related_info}}", + "title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}" + } + ] + } + }, + "labels": [ + "DBM", + "DBM_KAFKA", + "Kafka" + ], + "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": "Kafka 主机活跃网络连接数", + "version": 2, + "alert_source": "time_series", + "custom_conditions": [], + "export_at": "2024-12-13T15:07:45+08:00" +} \ No newline at end of file