Skip to content

Commit

Permalink
feat(redis): 告警策略更新 #5059
Browse files Browse the repository at this point in the history
  • Loading branch information
cycker authored and zhangzhw8 committed Jun 24, 2024
1 parent 00b6b35 commit 3cc5e82
Show file tree
Hide file tree
Showing 114 changed files with 26,516 additions and 15,178 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,293 @@
{
"version": "v2",
"bk_biz_id": 3,
"name": "Redis(RedisCluster)ClusterState异常critical事件",
"source": "dbm",
"scenario": "component",
"type": "monitor",
"items": [
{
"id": 39727,
"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_1572877.redis_cluster_state",
"id": 107408,
"functions": [],
"result_table_id": "bkmonitor_event_1572877",
"agg_method": "COUNT",
"agg_interval": 60,
"agg_dimension": [
"app",
"app_name",
"cluster_domain",
"cluster_type",
"target",
"instance",
"instance_role",
"warn_level",
"bk_biz_id",
"bk_cloud_id"
],
"agg_condition": [
{
"key": "warn_level",
"value": [
"error",
"critical"
],
"method": "eq",
"condition": "and",
"dimension_name": "warn_level"
},
{
"key": "cluster_type",
"value": [
"PredixyRedisCluster"
],
"method": "eq",
"condition": "and",
"dimension_name": "cluster_type"
}
],
"custom_event_name": "redis_cluster_state",
"name": "redis_cluster_state"
}
],
"algorithms": [
{
"id": 49972,
"type": "Threshold",
"level": 1,
"config": [
[
{
"method": "gte",
"threshold": 1
}
]
],
"unit_prefix": ""
}
],
"metric_type": "event"
}
],
"detects": [
{
"id": 49963,
"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": {
"id": 39727,
"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": 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": 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{{content.target}}\n{{content.dimension}}\n{{content.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{{content.target}}\n{{content.dimension}}\n{{content.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.related_info}}",
"title_tmpl": "{{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}"
}
]
},
"user_group_list": []
},
"is_enabled": true,
"is_invalid": false,
"invalid_type": "",
"update_time": "2023-11-30 16:06:04+0800",
"update_user": "admin",
"create_time": "2023-10-02 09:25:02+0800",
"create_user": "admin",
"labels": [
"DBM_REDIS"
],
"app": "",
"path": "",
"priority": 0,
"priority_group_key": "ff329848f0f04c1a",
"metric_type": "event",
"config_source": "UI",
"alert_count": 0,
"shield_alert_count": 0,
"shield_info": {
"is_shielded": false,
"shield_ids": []
},
"add_allowed": false,
"data_source_type": [
"",
"",
"",
"",
""
]
}
Loading

0 comments on commit 3cc5e82

Please sign in to comment.