grafana/pkg/services/ngalert/schedule
Alexander Weaver 393faa8732
Alerting: Move rule evaluation status logic out of prometheus API and into scheduler (#89141)
* Add health fields to rules and an aggregator method to the scheduler

* Move health, last error, and last eval time in together to minimize state processing

* Wire up a readonly scheduler to prom api

* Extract to exported function

* Use health in api_prometheus and fix up tests

* Rename health struct to status

* Fix tests one more time

* Several new tests

* Handle inactive rules

* Push state mapping into state manager

* rename to StatusReader

* Rectify cyclo complexity rebase

* Convert existing package local status implementation to models one

* fix tests

* undo RuleDefs rename
2024-09-30 16:52:49 -05:00
..
alert_rule_test.go Alerting: Move rule evaluation status logic out of prometheus API and into scheduler (#89141) 2024-09-30 16:52:49 -05:00
alert_rule.go Alerting: Move rule evaluation status logic out of prometheus API and into scheduler (#89141) 2024-09-30 16:52:49 -05:00
alerts_sender_mock.go Alerting: Fetch alerts from a remote Alertmanager (#75844) 2023-10-19 11:27:37 +02:00
fetcher.go Alerting: Small refactor, move unrelated functions out of fetcher (#82459) 2024-02-14 20:01:32 +02:00
jitter_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
jitter.go Alerting: Enable group-level rule evaluation jittering by default, remove feature toggle (#82212) 2024-02-09 15:53:58 -06:00
loaded_metrics_reader_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
loaded_metrics_reader.go Alerting: Scheduler and registry handle rules by an interface (#84044) 2024-03-11 22:57:38 +02:00
metrics_test.go Alerting: Small refactor, move unrelated functions out of fetcher (#82459) 2024-02-14 20:01:32 +02:00
metrics.go Alerting: Add a metric to track the number of rules with simplified editor settings (#93511) 2024-09-20 17:56:40 +02:00
recording_rule_test.go Alerting: Add enablement flag for recording rules (#92032) 2024-08-19 12:01:00 -05:00
recording_rule.go Alerting: Move rule evaluation status logic out of prometheus API and into scheduler (#89141) 2024-09-30 16:52:49 -05:00
registry_bench_test.go Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
registry_test.go Alerting: Add metadata field with editor_settings to alert rule (#93245) 2024-09-19 16:43:41 +02:00
registry.go Alerting: Move rule evaluation status logic out of prometheus API and into scheduler (#89141) 2024-09-30 16:52:49 -05:00
schedule_unit_test.go Alerting: Move rule evaluation status logic out of prometheus API and into scheduler (#89141) 2024-09-30 16:52:49 -05:00
schedule.go Alerting: Move rule evaluation status logic out of prometheus API and into scheduler (#89141) 2024-09-30 16:52:49 -05:00
testing.go Alerting: Add rule_group label to grafana_alerting_rule_group_rules metric (#88289) 2024-08-13 13:27:23 +02:00