Skip to content

Commit

Permalink
feat(backend): mysql 监控策略和仪表盘更新 #8196
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhw8 authored and iSecloud committed Nov 26, 2024
1 parent 4e7ace3 commit b5f5b19
Show file tree
Hide file tree
Showing 9 changed files with 714 additions and 369 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@
{
"name": "AVG(mysqlproxy_up)",
"no_data_config": {
"level": 2,
"continuous": 10,
"is_enabled": false,
"level": 1,
"continuous": "5",
"is_enabled": true,
"agg_dimension": [
"bk_target_service_instance_id"
"bk_target_service_instance_id",
"app",
"appid",
"cluster_domain",
"instance"
]
},
"target": [],
Expand Down Expand Up @@ -50,7 +54,7 @@
"algorithms": [
{
"type": "Threshold",
"level": 1,
"level": 2,
"config": [
[
{
Expand All @@ -67,23 +71,23 @@
],
"detects": [
{
"level": 1,
"level": 2,
"expression": "",
"trigger_config": {
"count": 1,
"count": 2,
"uptime": {
"calendars": [],
"time_ranges": [
{
"end": "23:59",
"start": "00:00"
"end": "23:30",
"start": "08:00"
}
]
},
"check_window": 5
"check_window": 3
},
"recovery_config": {
"check_window": 5,
"check_window": 2,
"status_setter": "recovery"
},
"connector": "and"
Expand All @@ -93,9 +97,10 @@
"notice": {
"config_id": 41020,
"user_groups": [],
"user_type": "main",
"signal": [
"abnormal",
"no_data"
"no_data",
"abnormal"
],
"options": {
"end_time": "23:59:59",
Expand Down Expand Up @@ -157,44 +162,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": {
Expand All @@ -213,7 +181,7 @@
"relate_type": "NOTICE",
"config": {
"need_poll": true,
"notify_interval": 7200,
"notify_interval": 21600,
"interval_notify_mode": "standard",
"template": [
{
Expand Down Expand Up @@ -242,14 +210,16 @@
"app": "",
"path": "",
"priority": 0,
"priority_group_key": "6754c7327eea4967",
"priority_group_key": "",
"edit_allowed": true,
"metric_type": "time_series",
"data_source_type": "监控采集指标",
"is_enabled": true
},
"is_enabled": true,
"monitor_indicator": "AVG(mysqlproxy_up)",
"version": 22,
"version": 23,
"alert_source": "time_series",
"custom_conditions": []
"custom_conditions": [],
"export_at": "2024-11-26T16:26:58+08:00"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "monitor",
"items": [
{
"name": "COUNT(slave-status)",
"name": "COUNT(slave-status-dbm_report_channel)",
"no_data_config": {
"level": 2,
"continuous": 10,
Expand Down Expand Up @@ -74,12 +74,12 @@
"calendars": [],
"time_ranges": [
{
"end": "23:59",
"start": "06:00"
"end": "23:59",
"start": "08:00"
},
{
"end": "02:59",
"start": "00:00"
"end": "01:00",
"start": "00:00"
}
]
},
Expand All @@ -96,6 +96,7 @@
"notice": {
"config_id": 40812,
"user_groups": [],
"user_type": "main",
"signal": [
"abnormal",
"no_data"
Expand All @@ -106,7 +107,11 @@
"assign_mode": [
"by_rule"
],
"upgrade_config": {},
"upgrade_config": {
"is_enabled": false,
"user_groups": [],
"upgrade_interval": 1440
},
"converge_config": {
"count": 1,
"condition": [
Expand Down Expand Up @@ -156,47 +161,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": []
},
Expand All @@ -211,7 +180,7 @@
"relate_type": "NOTICE",
"config": {
"need_poll": true,
"notify_interval": 7200,
"notify_interval": 14400,
"interval_notify_mode": "standard",
"template": [
{
Expand Down Expand Up @@ -239,14 +208,16 @@
"app": "",
"path": "",
"priority": 0,
"priority_group_key": "70f8ee61c00c9c50",
"priority_group_key": "",
"edit_allowed": true,
"metric_type": "event",
"data_source_type": "自定义事件",
"is_enabled": true
},
"is_enabled": true,
"monitor_indicator": "COUNT(slave-status)",
"version": 23,
"monitor_indicator": "COUNT(slave-status-dbm_report_channel)",
"version": 24,
"alert_source": "event",
"custom_conditions": []
"custom_conditions": [],
"export_at": "2024-11-26T16:26:58+08:00"
}
Loading

0 comments on commit b5f5b19

Please sign in to comment.