mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-23 18:06:58 +08:00
Optimizing mysql slow query alert rules
This commit is contained in:
parent
4cd3ff1d4a
commit
e009c5d8b5
1 changed files with 2 additions and 2 deletions
|
|
@ -351,8 +351,8 @@ groups:
|
||||||
query: 'mysql_slave_status_master_server_id > 0 and ON (instance) (mysql_slave_status_seconds_behind_master - mysql_slave_status_sql_delay) > 300'
|
query: 'mysql_slave_status_master_server_id > 0 and ON (instance) (mysql_slave_status_seconds_behind_master - mysql_slave_status_sql_delay) > 300'
|
||||||
severity: warning
|
severity: warning
|
||||||
- name: MySQL slow queries
|
- name: MySQL slow queries
|
||||||
description: MySQL server is having some slow queries.
|
description: MySQL server mysql has some new slow query.
|
||||||
query: 'mysql_global_status_slow_queries > 0'
|
query: rate(mysql_global_status_slow_queries[2m]) > 0
|
||||||
severity: warning
|
severity: warning
|
||||||
- name: MySQL restarted
|
- name: MySQL restarted
|
||||||
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 }}.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue