|
- [
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "A slow query has occurred in Mysql within the last minute - categraf",
- "note": "MySQL server mysql has some new slow query",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 2,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 120,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "increase(mysql_global_status_slow_queries[1m]) > 0",
- "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=MysqlSlowQueries"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "More than 60% of the connections in Mysql are in a running state - categraf",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 2,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 120,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "avg by (instance) (mysql_global_status_threads_running) / avg by (instance) (mysql_global_variables_max_connections) * 100 > 60",
- "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=MysqlHighThreadsRunning"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "Mysql has just restarted. Please be advised - categraf",
- "note": "MySQL has just been restarted, less than one minute ago",
- "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": "mysql_global_status_uptime < 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=MysqlRestarted"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "Mysql has opened a large number of file handles. Please be aware - categraf",
- "note": "More than 80% of MySQL files open",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 2,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 120,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "avg by (instance) (mysql_global_status_open_files) / avg by (instance)(mysql_global_variables_open_files_limit) * 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=MysqlHighOpenFiles"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "Mysql instance has crashed - categraf",
- "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": "mysql_up == 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=MysqlDown"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "MysqlInnodbLogWaits - categraf",
- "note": "MySQL innodb log writes stalling",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 2,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 0,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "rate(mysql_global_status_innodb_log_waits[15m]) > 10",
- "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=MysqlInnodbLogWaits"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "MysqlSlaveIoThreadNotRunning - categraf",
- "note": "MySQL Slave IO thread not running",
- "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": "mysql_slave_status_master_server_id > 0 and ON (instance) mysql_slave_status_slave_io_running == 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=MysqlSlaveIoThreadNotRunning"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "MysqlSlaveReplicationLag - categraf",
- "note": "",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 1,
- "severities": [
- 1
- ],
- "disabled": 1,
- "prom_for_duration": 60,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "mysql_slave_status_master_server_id > 0 and ON (instance) (mysql_slave_status_seconds_behind_master - mysql_slave_status_sql_delay) > 30",
- "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=MysqlSlaveReplicationLag"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "MysqlSlaveSqlThreadNotRunning - categraf",
- "note": "MySQL Slave SQL thread not running",
- "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": "mysql_slave_status_master_server_id > 0 and ON (instance) mysql_slave_status_slave_sql_running == 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=MysqlSlaveSqlThreadNotRunning"
- ],
- "annotations": null,
- "extra_config": null
- },
- {
- "cate": "prometheus",
- "datasource_ids": [
- 0
- ],
- "name": "The number of connections in Mysql has exceeded 80% - categraf",
- "note": "More than 80% of MySQL connections are in use",
- "prod": "metric",
- "algorithm": "",
- "algo_params": null,
- "delay": 0,
- "severity": 2,
- "severities": [
- 2
- ],
- "disabled": 1,
- "prom_for_duration": 120,
- "prom_ql": "",
- "rule_config": {
- "algo_params": null,
- "inhibit": false,
- "prom_ql": "",
- "queries": [
- {
- "prom_ql": "avg by (instance) (mysql_global_status_threads_connected) / avg by (instance) (mysql_global_variables_max_connections) * 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=MysqlTooManyConnections"
- ],
- "annotations": null,
- "extra_config": null
- }
- ]
|