- add new feature flag to support enabling the dispatcher sync timer on the alertmanager - this attempts to synchronize the flushes across HA nodes to decrease amount of duplicate notifications --------- Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
13 lines
374 B
Go
13 lines
374 B
Go
package notifier
|
|
|
|
// MergeState incorporates external nflog entries and silences to the Alertmanager's state.
|
|
func (am *alertmanager) MergeState(state ExternalState) error {
|
|
if err := am.Base.MergeNflog(state.Nflog); err != nil {
|
|
return err
|
|
}
|
|
if err := am.Base.MergeSilences(state.Silences); err != nil {
|
|
return err
|
|
}
|
|
return am.Base.MergeFlushLog(state.FlushLog)
|
|
}
|