grafana/pkg/services/ngalert/store
David Parrott 2a8446e435
Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576)
* Initial commit for state tracking

* basic state transition logic and tests

* constructor. test and interface fixup

* use new sig for sch.definitionRoutine()

* test fixup

* make the linter happy

* more minor linting cleanup

* Alerting: Send alerts from state tracker to notifier

* Add evaluation time and test

Add evaluation time and test

* Add cleanup routine and logging

* Pull in compact.go and reconcile differences

* Save alert transitions and save all state on shutdown

* pr feedback

* WIP

* WIP

* Persist alerts on evaluation and shutdown. Warm cache on startup

* Filter non-firing alerts before sending to notifier

Co-authored-by: Josue Abreu <josue@grafana.com>
2021-04-02 08:11:33 -07:00
..
alert_rule.go [Alerting]: Grafana managed ruler API implementation (#32537) 2021-04-01 11:11:45 +03:00
alertmanager.go [Alerting]: Alertmanager API implementation (#32174) 2021-03-31 23:00:56 +03:00
database_mig.go Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00
database.go Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00
instance_database.go Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00