grafana/conf
Matthew Jacobson 3228b64fe6
Alerting: Resend resolved notifications for ResolvedRetention duration (#88938)
* Simple replace of State.Resolved with State.ResolvedAt

* Retain ResolvedAt time between Normal->Normal transition

* Introduce ResolvedRetention to keep sending recently resolved alerts

* Make ResolvedRetention configurable with resolved_alert_retention

* Tick-based LastSentAt for testing of ResendDelay and ResolvedRetention

* Do not reset ResolvedAt during Normal->Pending transition

Initially this was done to be inline with Prom ruler. However, Prom ruler
doesn't keep track of Inactive->Pending/Alerting using the same alert instance,
so it's more understandable that they choose not to retain ResolvedAt. In our
case, since we use the same cached instance to represent the transition, it
makes more sense to retain it.

This should help alleviate some odd situations where temporarily entering
Pending will stop future resolved notifications that would have happened
because of ResolvedRetention.

* Pointers for ResolvedAt & LastSentAt

To avoid awkward time.Time{}.Unix() defaults on persist
2024-06-20 16:33:03 -04:00
..
provisioning chore: remove repetitive words (#86412) 2024-04-17 13:08:00 +01:00
defaults.ini Alerting: Resend resolved notifications for ResolvedRetention duration (#88938) 2024-06-20 16:33:03 -04:00
ldap_multiple.toml
ldap.toml LDAP: Allow setting minimum TLS version and accepted ciphers (#63646) 2023-02-28 12:13:46 +01:00
sample.ini Alerting: Resend resolved notifications for ResolvedRetention duration (#88938) 2024-06-20 16:33:03 -04:00