1
+ {
2
+ "bk_biz_id" : 0 ,
3
+ "name" : " MONGODB dbha切换mongos失败策略" ,
4
+ "db_type" : " mongos" ,
5
+ "details" : {
6
+ "bk_biz_id" : " " ,
7
+ "name" : " MONGODB dbha切换mongos失败策略" ,
8
+ "source" : " dbm" ,
9
+ "scenario" : " component" ,
10
+ "type" : " monitor" ,
11
+ "items" : [
12
+ {
13
+ "name" : " COUNT(dbha_mongos_switch_err-dbm_report_channel)" ,
14
+ "no_data_config" : {
15
+ "level" : 2 ,
16
+ "continuous" : 10 ,
17
+ "is_enabled" : false ,
18
+ "agg_dimension" : []
19
+ },
20
+ "target" : [],
21
+ "expression" : " a" ,
22
+ "functions" : [],
23
+ "origin_sql" : " " ,
24
+ "query_configs" : [
25
+ {
26
+ "data_source_label" : " custom" ,
27
+ "data_type_label" : " event" ,
28
+ "alias" : " a" ,
29
+ "metric_id" : " custom.event.bkmonitor_event_{event_data_id}.dbha_mongos_switch_err" ,
30
+ "functions" : [],
31
+ "result_table_id" : " bkmonitor_event_{event_data_id}" ,
32
+ "agg_method" : " COUNT" ,
33
+ "agg_interval" : 60 ,
34
+ "agg_dimension" : [
35
+ " bk_cloud_id" ,
36
+ " cluster_domain" ,
37
+ " idc" ,
38
+ " machine_type" ,
39
+ " instance_role" ,
40
+ " server_ip" ,
41
+ " server_port" ,
42
+ " status" ,
43
+ " target" ,
44
+ " appid"
45
+ ],
46
+ "agg_condition" : [],
47
+ "custom_event_name" : " dbha_mongos_switch_err" ,
48
+ "name" : " dbha_mongos_switch_err"
49
+ }
50
+ ],
51
+ "algorithms" : [
52
+ {
53
+ "type" : " Threshold" ,
54
+ "level" : 1 ,
55
+ "config" : [
56
+ [
57
+ {
58
+ "method" : " gte" ,
59
+ "threshold" : 1
60
+ }
61
+ ]
62
+ ],
63
+ "unit_prefix" : " "
64
+ }
65
+ ],
66
+ "metric_type" : " time_series"
67
+ }
68
+ ],
69
+ "detects" : [
70
+ {
71
+ "level" : 1 ,
72
+ "expression" : " " ,
73
+ "trigger_config" : {
74
+ "count" : 1 ,
75
+ "uptime" : {
76
+ "calendars" : [],
77
+ "time_ranges" : [
78
+ {
79
+ "end" : " 23:59" ,
80
+ "start" : " 00:00"
81
+ }
82
+ ]
83
+ },
84
+ "check_window" : 5
85
+ },
86
+ "recovery_config" : {
87
+ "check_window" : 5 ,
88
+ "status_setter" : " recovery"
89
+ },
90
+ "connector" : " and"
91
+ }
92
+ ],
93
+ "actions" : [],
94
+ "notice" : {
95
+ "config_id" : 98887 ,
96
+ "user_groups" : [],
97
+ "signal" : [
98
+ " abnormal" ,
99
+ " no_data"
100
+ ],
101
+ "options" : {
102
+ "end_time" : " 23:59:59" ,
103
+ "start_time" : " 00:00:00" ,
104
+ "assign_mode" : [
105
+ " by_rule"
106
+ ],
107
+ "upgrade_config" : {
108
+ "is_enabled" : false ,
109
+ "user_groups" : [],
110
+ "upgrade_interval" : 1440
111
+ },
112
+ "converge_config" : {
113
+ "count" : 1 ,
114
+ "condition" : [
115
+ {
116
+ "dimension" : " strategy_id" ,
117
+ "value" : [
118
+ " self"
119
+ ]
120
+ },
121
+ {
122
+ "dimension" : " dimensions" ,
123
+ "value" : [
124
+ " self"
125
+ ]
126
+ },
127
+ {
128
+ "dimension" : " alert_level" ,
129
+ "value" : [
130
+ " self"
131
+ ]
132
+ },
133
+ {
134
+ "dimension" : " signal" ,
135
+ "value" : [
136
+ " self"
137
+ ]
138
+ },
139
+ {
140
+ "dimension" : " bk_biz_id" ,
141
+ "value" : [
142
+ " self"
143
+ ]
144
+ },
145
+ {
146
+ "dimension" : " notice_receiver" ,
147
+ "value" : [
148
+ " self"
149
+ ]
150
+ },
151
+ {
152
+ "dimension" : " notice_way" ,
153
+ "value" : [
154
+ " self"
155
+ ]
156
+ }
157
+ ],
158
+ "timedelta" : 60 ,
159
+ "is_enabled" : true ,
160
+ "converge_func" : " collect" ,
161
+ "need_biz_converge" : false ,
162
+ "sub_converge_config" : {
163
+ "timedelta" : 60 ,
164
+ "count" : 2 ,
165
+ "condition" : [
166
+ {
167
+ "dimension" : " bk_biz_id" ,
168
+ "value" : [
169
+ " self"
170
+ ]
171
+ },
172
+ {
173
+ "dimension" : " notice_receiver" ,
174
+ "value" : [
175
+ " self"
176
+ ]
177
+ },
178
+ {
179
+ "dimension" : " notice_way" ,
180
+ "value" : [
181
+ " self"
182
+ ]
183
+ },
184
+ {
185
+ "dimension" : " alert_level" ,
186
+ "value" : [
187
+ " self"
188
+ ]
189
+ },
190
+ {
191
+ "dimension" : " signal" ,
192
+ "value" : [
193
+ " self"
194
+ ]
195
+ }
196
+ ],
197
+ "converge_func" : " collect_alarm"
198
+ }
199
+ },
200
+ "chart_image_enabled" : true ,
201
+ "exclude_notice_ways" : {
202
+ "ack" : [],
203
+ "closed" : [],
204
+ "recovered" : []
205
+ },
206
+ "noise_reduce_config" : {
207
+ "unit" : " percent" ,
208
+ "count" : 10 ,
209
+ "timedelta" : 5 ,
210
+ "dimensions" : [],
211
+ "is_enabled" : false
212
+ }
213
+ },
214
+ "relate_type" : " NOTICE" ,
215
+ "config" : {
216
+ "need_poll" : true ,
217
+ "notify_interval" : 7200 ,
218
+ "interval_notify_mode" : " standard" ,
219
+ "template" : [
220
+ {
221
+ "signal" : " abnormal" ,
222
+ "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}}" ,
223
+ "title_tmpl" : " {{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}"
224
+ },
225
+ {
226
+ "signal" : " recovered" ,
227
+ "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}}" ,
228
+ "title_tmpl" : " {{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}"
229
+ },
230
+ {
231
+ "signal" : " closed" ,
232
+ "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}}" ,
233
+ "title_tmpl" : " {{business.bk_biz_name}} - {{alarm.name}}{{alarm.display_type}}"
234
+ }
235
+ ]
236
+ }
237
+ },
238
+ "labels" : [
239
+ " DBM" ,
240
+ " DBM_MONGODB" ,
241
+ " NO_MONITOR_TARGET"
242
+ ],
243
+ "app" : " " ,
244
+ "path" : " " ,
245
+ "priority" : 0 ,
246
+ "priority_group_key" : " " ,
247
+ "metric_type" : " time_series" ,
248
+ "data_source_type" : " \u81ea\u5b9a\u4e49\u4e8b\u4ef6 " ,
249
+ "is_enabled" : true
250
+ },
251
+ "is_enabled" : true ,
252
+ "monitor_indicator" : " COUNT(dbha_mongos_switch_err-dbm_report_channel)" ,
253
+ "version" : 24 ,
254
+ "alert_source" : " event" ,
255
+ "custom_conditions" : []
256
+ }
0 commit comments