grafana/pkg/services/ngalert/schedule
Yuriy Tseretyan ed5c664e4a
Alerting: Stop firing of alert when it is updated (#39975)
* Update API to call the scheduler to remove\update an alert rule. When a rule is updated by a user, the scheduler will remove the currently firing alert instances and clean up the state cache. 
* Update evaluation loop in the scheduler to support one more channel that is used to communicate updates to it.
* Improved rule deletion from the internal registry. 
* Move alert rule version from the internal registry (structure alertRuleInfo) closer rule evaluation loop (to evaluation task structure), which will make the registry values immutable.
* Extract notification code to a separate function to reuse in update flow.
2022-01-11 11:39:34 -05:00
..
compat_test.go Alerting: Stop firing of alert when it is updated (#39975) 2022-01-11 11:39:34 -05:00
compat.go Alerting: Stop firing of alert when it is updated (#39975) 2022-01-11 11:39:34 -05:00
fetcher.go Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
schedule_test.go Alerting template functions (#39261) 2021-10-04 15:04:37 -03:00
schedule_unit_test.go Alerting: Stop firing of alert when it is updated (#39975) 2022-01-11 11:39:34 -05:00
schedule.go Alerting: Stop firing of alert when it is updated (#39975) 2022-01-11 11:39:34 -05:00
testing.go Alerting: Stop firing of alert when it is updated (#39975) 2022-01-11 11:39:34 -05:00