mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-22 01:17:19 +08:00
feat: Add new rules for MySQLd_exporter from prometheus
This commit is contained in:
parent
a4fc086b9a
commit
5d8f911d97
1 changed files with 16 additions and 0 deletions
|
|
@ -301,6 +301,22 @@ groups:
|
|||
- name: prometheus/mysqld_exporter
|
||||
doc_url: https://github.com/prometheus/mysqld_exporter
|
||||
rules:
|
||||
- name: MySQL down
|
||||
description: MySQL down on {{ $labels.instance }}
|
||||
query: 'mysql_up == 0'
|
||||
severity: error
|
||||
- name: MySQL connections number is high
|
||||
description: MySQL connections numbers approach the maximum number of connexion possible : more than 80% of connection are in use on {{ $labels.instance }}
|
||||
query: '(mysql_global_status_threads_connected / mysql_global_variables_max_connections) * 100 > 80'
|
||||
severity: error
|
||||
- name: MySQL slow query count
|
||||
description: MySQL server is having some slow query. The count is higher than 0 on {{ $labels.instance }}
|
||||
query: 'rate(mysql_global_status_slow_queries[5m]) > 0'
|
||||
severity: warning
|
||||
- name: MySQL restart
|
||||
description: MySQL has just been restarted, less than one minute ago on {{ $labels.instance }}.
|
||||
query: 'mysql_global_status_uptime < 60'
|
||||
severity: warning
|
||||
|
||||
- name: PostgreSQL
|
||||
exporters:
|
||||
|
|
|
|||
Loading…
Reference in a new issue