|
- [
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "posgresql读取时间过高",
- "note": "数据库中花费在读取文件的时间,这个值很高说明内存较小,需要频繁从磁盘读入数据文件",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "postgresql_blk_read_time>3000",
- "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": "Postgresql down",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "postgresql_up!=1",
- "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": "postgresql写入时间过高",
- "note": "数据库中花费在写数据文件的时间,pg中脏页一般写入page cache,如果这个值较高,则说明cache较小,操作系统的cache需要更积极的写入",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "postgresql_blk_write_time > 1000",
- "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": "postgresql有死锁",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "postgresql_deadlocks > 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": "Postgresql缓存命中率低于50%",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 0,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "queries": [
- {
- "prom_ql": "postgresql_blks_hit*100/(postgresql_blks_hit+postgresql_blks_read) < 50",
- "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": {}
- }
- ]
|