mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-07-09 16:00:59 +00:00
fix(alerts): regenerate message on re-evaluation, not just initial fire
Existing alerts kept their stale message from when they first fired. Now the message is regenerated on every evaluation cycle so label fixes and wording improvements take effect immediately.
This commit is contained in:
parent
fa5a874986
commit
24ce95e2ad
1 changed files with 1 additions and 0 deletions
|
|
@ -277,6 +277,7 @@ func (m *Manager) evaluateCanonicalMetricAlert(spec alertspecs.ResourceAlertSpec
|
|||
if dn := m.resolveNodeDisplayName(existingAlert.Instance, existingAlert.Node); dn != "" {
|
||||
existingAlert.NodeDisplayName = dn
|
||||
}
|
||||
existingAlert.Message = message
|
||||
if opts != nil && opts.Message != "" {
|
||||
existingAlert.Message = opts.Message
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue