|
- [
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "springboot HEAP内存使用率大于20%",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 0,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "sum(jvm_memory_used_bytes{instance=~\".+\", area=\"heap\"})*100/sum(jvm_memory_max_bytes{instance=~\".+\", area=\"heap\"}) >20",
- "severity": 2
- }
- ]
- },
- "prom_eval_interval": 30,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ],
- "enable_days_of_weeks": [
- [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ]
- ],
- "enable_in_bg": 0,
- "notify_recovered": 1,
- "notify_channels": [],
- "notify_repeat_step": 60,
- "notify_max_number": 0,
- "recover_duration": 0,
- "callbacks": [],
- "runbook_url": "",
- "append_tags": [],
- "annotations": {}
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "springboot HTTP请求延迟大于10s",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 0,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "max(http_server_requests_seconds_max{instance=~\".+\", status!~\"5..\"}) > 10",
- "severity": 2
- }
- ]
- },
- "prom_eval_interval": 30,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ],
- "enable_days_of_weeks": [
- [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ]
- ],
- "enable_in_bg": 0,
- "notify_recovered": 1,
- "notify_channels": [],
- "notify_repeat_step": 60,
- "notify_max_number": 0,
- "recover_duration": 0,
- "callbacks": [],
- "runbook_url": "",
- "append_tags": [],
- "annotations": {}
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "springboot HTTP错误数",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 0,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "sum(rate(http_server_requests_seconds_count{instance=~\".+\", status=~\"5.+\"}[1m])) != 0",
- "severity": 2
- }
- ]
- },
- "prom_eval_interval": 30,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ],
- "enable_days_of_weeks": [
- [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ]
- ],
- "enable_in_bg": 0,
- "notify_recovered": 1,
- "notify_channels": [],
- "notify_repeat_step": 60,
- "notify_max_number": 0,
- "recover_duration": 0,
- "callbacks": [],
- "runbook_url": "",
- "append_tags": [],
- "annotations": {}
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "springboot NOHEAP内存使用率大于30%",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 0,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "sum(jvm_memory_used_bytes{instance=~\".+\", area=\"nonheap\"})*100/sum(jvm_memory_max_bytes{instance=~\".+\", area=\"nonheap\"}) > 30",
- "severity": 2
- }
- ]
- },
- "prom_eval_interval": 30,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ],
- "enable_days_of_weeks": [
- [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ]
- ],
- "enable_in_bg": 0,
- "notify_recovered": 1,
- "notify_channels": [],
- "notify_repeat_step": 60,
- "notify_max_number": 0,
- "recover_duration": 0,
- "callbacks": [],
- "runbook_url": "",
- "append_tags": [],
- "annotations": {}
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "springboot 事件错误数",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 0,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "increase(logback_events_total{instance=\"$instance\"}[1m]) > 0",
- "severity": 2
- }
- ]
- },
- "prom_eval_interval": 30,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ],
- "enable_days_of_weeks": [
- [
- "0",
- "1",
- "2",
- "3",
- "4",
- "5",
- "6"
- ]
- ],
- "enable_in_bg": 0,
- "notify_recovered": 1,
- "notify_channels": [],
- "notify_repeat_step": 60,
- "notify_max_number": 0,
- "recover_duration": 0,
- "callbacks": [],
- "runbook_url": "",
- "append_tags": [],
- "annotations": {}
- }
- ]
|