File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ groups:
47
47
description : Slave replication (IO or SQL) has been down for more than 2 minutes.
48
48
summary : Slave replication is not running
49
49
- alert : MySQLReplicationLag
50
- expr : (:mysql_slave_lag_seconds > 30) and on(instance) (predict_linear(:mysql_slave_lag_seconds[5m],
50
+ expr : (instance :mysql_slave_lag_seconds > 30) and on(instance) (predict_linear(instance :mysql_slave_lag_seconds[5m],
51
51
60 * 2) > 0)
52
52
for : 1m
53
53
labels :
@@ -56,7 +56,7 @@ groups:
56
56
description : The mysql slave replication has fallen behind and is not recovering
57
57
summary : MySQL slave replication is lagging
58
58
- alert : MySQLReplicationLag
59
- expr : (:mysql_heartbeat_lag_seconds > 30) and on(instance) (predict_linear(:mysql_heartbeat_lag_seconds[5m],
59
+ expr : (instance :mysql_heartbeat_lag_seconds > 30) and on(instance) (predict_linear(instance :mysql_heartbeat_lag_seconds[5m],
60
60
60 * 2) > 0)
61
61
for : 1m
62
62
labels :
You can’t perform that action at this time.
0 commit comments