|
- [
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "Process X high number of open files - exporter",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 2,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "avg by (instance) (namedprocess_namegroup_worst_fd_ratio{groupname=\"X\"}) * 100 > 80",
- "severity": 2
- }
- ],
- "severity": 0
- },
- "prom_eval_interval": 15,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "0"
- ],
- "enable_days_of_weeks": [
- [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "0"
- ]
- ],
- "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": [
- "alertname=ProcessHighOpenFiles"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "Process X is down - exporter",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 1,
- "severities": [
- 1
- ],
- "disabled": 1,
- "prom_for_duration": 0,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "sum by (instance) (namedprocess_namegroup_num_procs{groupname=\"X\"}) == 0",
- "severity": 1
- }
- ],
- "severity": 0
- },
- "prom_eval_interval": 15,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "0"
- ],
- "enable_days_of_weeks": [
- [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "0"
- ]
- ],
- "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": [
- "alertname=ProcessNotRunning"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "Process X is restarted - exporter",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 3,
- "severities": [
- 3
- ],
- "disabled": 1,
- "prom_for_duration": 0,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "namedprocess_namegroup_oldest_start_time_seconds{groupname=\"X\"} > time() - 60 ",
- "severity": 3
- }
- ],
- "severity": 0
- },
- "prom_eval_interval": 15,
- "enable_stime": "00:00",
- "enable_stimes": [
- "00:00"
- ],
- "enable_etime": "23:59",
- "enable_etimes": [
- "23:59"
- ],
- "enable_days_of_week": [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "0"
- ],
- "enable_days_of_weeks": [
- [
- "1",
- "2",
- "3",
- "4",
- "5",
- "6",
- "0"
- ]
- ],
- "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": [
- "alertname=ProcessRestarted"
- ],
- "annotations": null,
- "extra_config": null
- }
- ]
|