grafana/pkg/services/ngalert/notifier
Matthew Jacobson ba3994d338
Alerting: Repurpose rule testing endpoint to return potential alerts (#69755)
* Alerting: Repurpose rule testing endpoint to return potential alerts

This feature replaces the existing no-longer in-use grafana ruler testing API endpoint /api/v1/rule/test/grafana. The new endpoint returns a list of potential alerts created by the given alert rule, including built-in + interpolated labels and annotations.

The key priority of this endpoint is that it is intended to be as true as possible to what would be generated by the ruler except that the resulting alerts are not filtered to only Resolved / Firing and ready to be sent.

This means that the endpoint will, among other things:

- Attach static annotations and labels from the rule configuration to the alert instances.
- Attach dynamic annotations from the datasource to the alert instances.
- Attach built-in labels and annotations created by the Grafana Ruler (such as alertname and grafana_folder) to the alert instances.
- Interpolate templated annotations / labels and accept allowed template functions.
2023-06-08 18:59:54 -04:00
..
channels_config Alerting: Change text on cloud AM email addresses for contact points (#68143) 2023-05-10 10:44:17 +02:00
alertmanager_config.go Alerting: Add endpoint to revert to a previous alertmanager configuration (#65751) 2023-04-05 14:10:03 -04:00
alertmanager_test.go Alerting: Template Testing API (#67450) 2023-04-28 15:56:59 +01:00
alertmanager.go Alerting: Fix provisioned templates being ignored by alertmanager (#69485) 2023-06-02 15:47:43 -04:00
alerts.go Alerting: Update to alerting 20230203015918-0e4e2675d7aa (after refactoring) (#62823) 2023-02-03 11:36:49 -05:00
compat_test.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
compat.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
config_test.go Alerting: Fix provisioned templates being ignored by alertmanager (#69485) 2023-06-02 15:47:43 -04:00
config.go Alerting: Fix provisioned templates being ignored by alertmanager (#69485) 2023-06-02 15:47:43 -04:00
crypto.go Alerting: Improve log messages (#67688) 2023-05-25 18:55:01 +03:00
email_test.go Revert "Alerting: Refactor the ImageStore/Provider to provide image URL/bytes" (#69265) 2023-05-30 11:33:33 -05:00
file_store_test.go Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
file_store.go Alerting: Improve log messages (#67688) 2023-05-25 18:55:01 +03:00
images_test.go Revert "Alerting: Refactor the ImageStore/Provider to provide image URL/bytes" (#69265) 2023-05-30 11:33:33 -05:00
images.go Revert "Alerting: Refactor the ImageStore/Provider to provide image URL/bytes" (#69265) 2023-05-30 11:33:33 -05:00
log.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
multiorg_alertmanager_test.go Alerting: Add endpoint to revert to a previous alertmanager configuration (#65751) 2023-04-05 14:10:03 -04:00
multiorg_alertmanager.go Alerting: Improve log messages (#67688) 2023-05-25 18:55:01 +03:00
receivers_test.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
receivers.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
redis_channel_test.go Alerting: Add support for running HA using Redis (#65267) 2023-04-19 17:05:26 +02:00
redis_channel.go Alerting: Add support for running HA using Redis (#65267) 2023-04-19 17:05:26 +02:00
redis_peer.go Alerting: Add support for running HA using Redis (#65267) 2023-04-19 17:05:26 +02:00
sender.go Alerting: Update alerting module to 20230418161049-5f374e58cb32 + refactoring (#66622) 2023-04-25 13:39:46 -04:00
silences.go Alerting: Update to alerting 20230203015918-0e4e2675d7aa (after refactoring) (#62823) 2023-02-03 11:36:49 -05:00
status.go Alerting: Use alerting.GrafanaAlertmanager instead of initialising Alertmanager components directly (#61230) 2023-01-13 12:54:38 -04:00
templates_test.go Alerting: Template Testing API (#67450) 2023-04-28 15:56:59 +01:00
templates.go Alerting: Repurpose rule testing endpoint to return potential alerts (#69755) 2023-06-08 18:59:54 -04:00
testing.go Revert "Alerting: Refactor the ImageStore/Provider to provide image URL/bytes" (#69265) 2023-05-30 11:33:33 -05:00