alerting: dedupe alert notifications when running multiple servers

alert notifications will only be sent if the database value
is updated.

ref #6957
This commit is contained in:
bergquist
2017-02-21 14:47:02 +01:00
parent d5245fd19a
commit 00dddca26a
3 changed files with 11 additions and 0 deletions

View File

@@ -61,6 +61,12 @@ func (handler *DefaultResultHandler) Handle(evalContext *EvalContext) error {
handler.log.Error("Cannot change state on alert thats pause", "error", err)
return err
}
if err == m.ErrRequiresNewState {
handler.log.Info("Alert already updated")
return nil
}
handler.log.Error("Failed to save state", "error", err)
}