mirror of
https://github.com/actiontech/dble.git
synced 2026-01-05 20:30:40 -06:00
[bug]fix heartbeat fail alert can't be resolved
This commit is contained in:
@@ -300,7 +300,8 @@ public class MySQLHeartbeat {
|
||||
this.status = OK_STATUS;
|
||||
this.errorCount.set(0);
|
||||
this.startErrorTime.set(-1);
|
||||
alert();
|
||||
Map<String, String> labels = AlertUtil.genSingleLabel("dbInstance", this.source.getDbGroupConfig().getName() + "-" + this.source.getConfig().getInstanceName());
|
||||
AlertUtil.alertResolve(AlarmCode.HEARTBEAT_FAIL, Alert.AlertLevel.WARN, "mysql", this.source.getConfig().getId(), labels);
|
||||
}
|
||||
if (isStop) {
|
||||
LOGGER.warn("heartbeat[{}] had been stop", source.getConfig().getUrl());
|
||||
|
||||
Reference in New Issue
Block a user