Merge pull request #95 from AsLuck/master

Adding rules for MySQLd_exporter from prometheus
This commit is contained in:
Samuel Berthe 2020-03-25 16:38:21 +01:00 committed by GitHub
commit db906f4a8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: '(mysql_global_status_slow_queries > 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: