mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-03 20:21:43 +00:00
nflog: enable sharing log via gossip
This commit is contained in:
parent
d48b4e5dbd
commit
d6713c8eeb
@ -311,7 +311,7 @@ func (l *nlog) log(r *pb.Receiver, gkey, ghash []byte, resolved bool) error {
|
||||
return err
|
||||
}
|
||||
|
||||
l.st[key] = &pb.MeshEntry{
|
||||
e := &pb.MeshEntry{
|
||||
Entry: &pb.Entry{
|
||||
Receiver: r,
|
||||
GroupKey: gkey,
|
||||
@ -321,6 +321,11 @@ func (l *nlog) log(r *pb.Receiver, gkey, ghash []byte, resolved bool) error {
|
||||
},
|
||||
ExpiresAt: expts,
|
||||
}
|
||||
l.gossip.GossipBroadcast(gossipData{
|
||||
key: e,
|
||||
})
|
||||
l.st[key] = e
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user