grafana/pkg/services/ngalert/models
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
..
admin_configuration_test.go Alerting: Remove url based external alertmanagers config (#57918) 2022-11-10 16:34:13 +01:00
admin_configuration.go Alerting: Remove url based external alertmanagers config (#57918) 2022-11-10 16:34:13 +01:00
alert_query_test.go Alerting: Return better error for invalid time range on alert queries (#85611) 2024-04-05 09:20:21 -05:00
alert_query.go Alerting: Return better error for invalid time range on alert queries (#85611) 2024-04-05 09:20:21 -05:00
alert_rule_test.go Alerting: Copy alert rule metadata when the rule is updated via provisioning API (#93723) 2024-09-25 22:31:02 +02: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
alertmanager.go Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392) 2023-12-12 13:49:54 +01:00
constants.go Plugins: Automatically forward plugin request HTTP headers in outgoing HTTP requests (#60417) 2022-12-21 13:25:58 +01:00
errors.go Alerting: Detach condition validator from condition evaluator (#91150) 2024-07-30 10:55:37 -05:00
fingerprint.go Alerting: Support secrets in contact points nested fields (#92035) 2024-09-10 22:26:23 -04:00
history.go Chore: Move identity and errutil to apimachinery module (#89116) 2024-06-13 07:11:35 +03:00
image_test.go Alerting: Fix test fails in some environments (#58251) 2022-11-07 16:34:37 +00:00
image.go Alerting: Fix test fails in some environments (#58251) 2022-11-07 16:34:37 +00:00
instance_labels_test.go Alerting: use hash of labels instead of labels string as the alert state cache key (#88956) 2024-06-11 18:34:58 +02:00
instance_labels.go Alerting: use hash of labels instead of labels string as the alert state cache key (#88956) 2024-06-11 18:34:58 +02:00
instance_test.go Alerting: Add alert pausing feature (#60734) 2023-01-26 18:29:10 +01:00
instance.go Alerting: Persist AlertInstance ResolvedAt & LastSentAt (#89135) 2024-07-12 12:26:58 -04:00
notifications_test.go Alerting: Prevent simplified routing zero duration GroupInterval and RepeatInterval (#86561) 2024-04-18 21:08:38 -04:00
notifications.go Alerting: Time interval Delete API to check for usages in alert rules (#90500) 2024-07-17 10:53:54 -04:00
permissions.go Alerting: Receiver resource permissions service (#93552) 2024-09-20 18:31:42 -04:00
provisioning.go Alerting: Update Time Interval service to support renaming of resources (#91856) 2024-08-16 20:55:03 +03:00
receivers_test.go Alerting: Support secrets in contact points nested fields (#92035) 2024-09-10 22:26:23 -04:00
receivers.go Alerting: Include in-use metadata in k8s receiver LIST & GET (#93016) 2024-09-13 20:20:09 +03:00
silence_test.go Alerting: Add optional metadata via query param to silence GET requests (#88000) 2024-05-30 12:04:47 -04:00
silence.go Alerting: Include access control metadata in k8s receiver LIST & GET (#93013) 2024-09-12 20:57:53 +03:00
testing.go Alerting: Add metadata field with editor_settings to alert rule (#93245) 2024-09-19 16:43:41 +02:00
time.go Alerting: Fix test fails in some environments (#58251) 2022-11-07 16:34:37 +00:00