[ { "id": 0, "group_id": 0, "cate": "prometheus", "datasource_ids": [ 0 ], "cluster": "", "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\"}) \u003e20", "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_groups_obj": null, "notify_groups": null, "notify_repeat_step": 60, "notify_max_number": 0, "recover_duration": 0, "callbacks": [], "runbook_url": "", "append_tags": [], "annotations": {}, "extra_config": null, "create_at": 0, "create_by": "", "update_at": 0, "update_by": "", "uuid": 1717556328389228000 }, { "id": 0, "group_id": 0, "cate": "prometheus", "datasource_ids": [ 0 ], "cluster": "", "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..\"}) \u003e 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_groups_obj": null, "notify_groups": null, "notify_repeat_step": 60, "notify_max_number": 0, "recover_duration": 0, "callbacks": [], "runbook_url": "", "append_tags": [], "annotations": {}, "extra_config": null, "create_at": 0, "create_by": "", "update_at": 0, "update_by": "", "uuid": 1717556328389834000 }, { "id": 0, "group_id": 0, "cate": "prometheus", "datasource_ids": [ 0 ], "cluster": "", "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_groups_obj": null, "notify_groups": null, "notify_repeat_step": 60, "notify_max_number": 0, "recover_duration": 0, "callbacks": [], "runbook_url": "", "append_tags": [], "annotations": {}, "extra_config": null, "create_at": 0, "create_by": "", "update_at": 0, "update_by": "", "uuid": 1717556328390482000 }, { "id": 0, "group_id": 0, "cate": "prometheus", "datasource_ids": [ 0 ], "cluster": "", "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\"}) \u003e 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_groups_obj": null, "notify_groups": null, "notify_repeat_step": 60, "notify_max_number": 0, "recover_duration": 0, "callbacks": [], "runbook_url": "", "append_tags": [], "annotations": {}, "extra_config": null, "create_at": 0, "create_by": "", "update_at": 0, "update_by": "", "uuid": 1717556328391132000 }, { "id": 0, "group_id": 0, "cate": "prometheus", "datasource_ids": [ 0 ], "cluster": "", "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]) \u003e 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_groups_obj": null, "notify_groups": null, "notify_repeat_step": 60, "notify_max_number": 0, "recover_duration": 0, "callbacks": [], "runbook_url": "", "append_tags": [], "annotations": {}, "extra_config": null, "create_at": 0, "create_by": "", "update_at": 0, "update_by": "", "uuid": 1717556328391712000 } ]