From d5f6388899bd19fac884ac0153986cc33a11d625 Mon Sep 17 00:00:00 2001 From: Samuel Berthe Date: Sat, 9 May 2020 02:11:18 +0200 Subject: [PATCH] renaming some mysql alerts --- _data/rules.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_data/rules.yml b/_data/rules.yml index a6b0254..571fbb7 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -322,15 +322,15 @@ groups: description: 'More than 60% of MySQL connections are in running state on {{ $labels.instance }}' query: 'avg by (instance) (max_over_time(mysql_global_status_threads_running[5m])) / avg by (instance) (mysql_global_variables_max_connections) * 100 > 60' severity: warning - - name: MySQL Slave IO thread not running on {{ $instance.instance }} + - name: MySQL Slave IO thread not running description: 'MySQL Slave IO thread not running on {{ $labels.instance }}' query: 'mysql_slave_status_master_server_id > 0 and ON (instance) mysql_slave_status_slave_io_running == 0' severity: error - - name: MySQL Slave SQL thread not running on {{ $instance.instance }} + - name: MySQL Slave SQL thread not running description: 'MySQL Slave SQL thread not running on {{ $labels.instance }}' query: 'mysql_slave_status_master_server_id > 0 and ON (instance) mysql_slave_status_slave_sql_running == 0' severity: error - - name: MySQL Slave replication lag {{ $instance.instance }} + - name: MySQL Slave replication lag description: 'MysqL replication lag on {{ $labels.instance }}' 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