mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-26 11:27:00 +08:00
Add new MySQL monitoring rules
This commit is contained in:
parent
18f6c45a5f
commit
aa84f3ac95
1 changed files with 20 additions and 0 deletions
|
|
@ -628,6 +628,26 @@ groups:
|
||||||
description: MySQL has just been restarted, less than one minute ago on {{ $labels.instance }}.
|
description: MySQL has just been restarted, less than one minute ago on {{ $labels.instance }}.
|
||||||
query: "mysql_global_status_uptime < 60"
|
query: "mysql_global_status_uptime < 60"
|
||||||
severity: info
|
severity: info
|
||||||
|
- name: MySQL High QPS
|
||||||
|
description: MySQL is being overload with unusual QPS (> 10k QPS).
|
||||||
|
query: "irate(mysql_global_status_questions[1m]) > 10000"
|
||||||
|
severity: info
|
||||||
|
for: 2m
|
||||||
|
- name: MySQL too many open files
|
||||||
|
description: MySQL has too many open files, consider increase variables open_files_limit on {{ $labels.instance }}.
|
||||||
|
query: "mysql_global_status_innodb_num_open_files / mysql_global_variables_open_files_limit * 100 > 75"
|
||||||
|
severity: warning
|
||||||
|
for: 2m
|
||||||
|
- name: MySQL InnoDB Force Recovery is enabled
|
||||||
|
description: "MySQL InnoDB force recovery is enabled on {{ $labels.instance }}"
|
||||||
|
query: "mysql_global_variables_innodb_force_recovery != 0"
|
||||||
|
severity: warning
|
||||||
|
for: 2m
|
||||||
|
- name: MySQL InnoDB history_len too long
|
||||||
|
description: "MySQL history_len (undo log) too long on {{ $labels.instance }}"
|
||||||
|
query: "mysql_info_schema_innodb_metrics_transaction_trx_rseg_history_len > 50000"
|
||||||
|
severity: warning
|
||||||
|
for: 2m
|
||||||
|
|
||||||
- name: PostgreSQL
|
- name: PostgreSQL
|
||||||
exporters:
|
exporters:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue