prevent notifications flood from mysql alarms
Costa Tsaousis (ktsaou) committed
Dec 29, 2016 at 22:05 UTC
fb18c369828d4d3bdeab7b0010ab20ed73a63379
1 file changed
+6
-5
conf.d/health.d/mysql.conf
+6
-5
@@ -49,15 +49,16 @@ template: mysql_10s_table_locks_waited
49
50
template: mysql_10s_waited_locks_ratio
51
on: mysql.table_locks
52
- calc: $mysql_10s_table_locks_waited * 100 / ( $mysql_10s_table_locks_waited + $mysql_10s_table_locks_immediate)
52
+ calc: ($mysql_10s_table_locks_waited * 100) / ($mysql_10s_table_locks_waited + $mysql_10s_table_locks_immediate)
53
units: %
54
every: 10s
55
- warn: $this > (($status >= $WARNING) ? (10) : (20))
56
- crit: $this > (($status == $CRITICAL) ? (20) : (50))
57
- delay: down 5m multiplier 1.5 max 1h
55
+ warn: $this > (($status >= $WARNING) ? (10) : (25))
56
+ crit: $this > (($status == $CRITICAL) ? (25) : (50))
57
+ delay: down 30m multiplier 1.5 max 1h
58
info: the ratio of mysql waited table locks, for the last 10 seconds
59
to: dba
60
61
+
62
# -----------------------------------------------------------------------------
63
# replication
64
@@ -78,7 +79,7 @@ template: mysql_replication_lag
79
every: 10s
80
warn: $this > (($status >= $WARNING) ? (5) : (10))
81
crit: $this > (($status == $CRITICAL) ? (10) : (30))
81
- delay: down 5m multiplier 1.5 max 1h
82
+ delay: down 15m multiplier 1.5 max 1h
83
info: the number of seconds mysql replication is behind this master
84
to: dba
85