|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332 |
- [
- {
- "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": {}
- }
- ]
|