58 lines
1.4 KiB
JSON
58 lines
1.4 KiB
JSON
[
|
|
{
|
|
"name": "数据有丢失风险-同步副本数小于3",
|
|
"note": "",
|
|
"severity": 2,
|
|
"disabled": 0,
|
|
"prom_for_duration": 60,
|
|
"prom_ql": "sum(kafka_topic_partition_in_sync_replica) by (topic) < 3",
|
|
"prom_eval_interval": 15,
|
|
"enable_stime": "00:00",
|
|
"enable_etime": "23:59",
|
|
"enable_days_of_week": [
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
"0"
|
|
],
|
|
"enable_in_bg": 0,
|
|
"notify_recovered": 1,
|
|
"notify_channels": [],
|
|
"notify_repeat_step": 60,
|
|
"recover_duration": 0,
|
|
"callbacks": [],
|
|
"runbook_url": "",
|
|
"append_tags": []
|
|
},
|
|
{
|
|
"name": "消费能力不足-积压消息数超过50条",
|
|
"note": "",
|
|
"severity": 2,
|
|
"disabled": 0,
|
|
"prom_for_duration": 60,
|
|
"prom_ql": "sum(kafka_topic_partition_current_offset{instance=\"$instance\"}) by (topic) - sum(kafka_consumergroup_current_offset{instance=\"$instance\"}) by (topic) ",
|
|
"prom_eval_interval": 15,
|
|
"enable_stime": "00:00",
|
|
"enable_etime": "23:59",
|
|
"enable_days_of_week": [
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
"0"
|
|
],
|
|
"enable_in_bg": 0,
|
|
"notify_recovered": 1,
|
|
"notify_channels": [],
|
|
"notify_repeat_step": 60,
|
|
"recover_duration": 0,
|
|
"callbacks": [],
|
|
"runbook_url": "",
|
|
"append_tags": []
|
|
}
|
|
] |