grafana/pkg/services/ngalert
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
..
api ngalert: json dataframe on temp endpoints (#32641) 2021-04-02 15:52:38 +02:00
eval Alerting: Send alerts from state tracker to notifier, logging, and cleanup task (#32333) 2021-03-30 09:37:56 -07:00
models Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00
notifier [Alerting]: Alertmanager API implementation (#32174) 2021-03-31 23:00:56 +03:00
schedule Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00
state Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00
store Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00
tests Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00
ngalert.go Alerting: Persist alerts on evaluation and shutdown. Warm cache from DB on startup (#32576) 2021-04-02 08:11:33 -07:00