grafana/pkg/services/ngalert/state
George Robinson 802d67eeca
Alerting: Support values in notification templates (#56457)
We have received a lot of feedback regarding the ValueString in alert notifications. Perhaps one of the most frequent complaints about ValueString is that it is difficult to read because it contains a lot of information, and the information is shown as a JSON-like string. Users have often asked how it can be templated and the answer is that it can't.

Until now users have been able to add custom annotations to their alert rules which contains values via the $values variable added in previous versions of Grafana. However, these custom annotations must be added for each of the user's alert rule, instead of once in a template that all of their alerts can be notified via.

This commit adds then the much requested feature to support values in notification templates. Users can then create a single template that prints the annotations, labels and values of their alerts in a format of their choice!
2022-10-10 13:40:21 +01:00
..
historian Alerting: Move annotation functionality behind a history persistence interface (#56133) 2022-10-05 15:32:20 -05:00
cache_test.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
cache.go Alerting: Support values in notification templates (#56457) 2022-10-10 13:40:21 +01:00
manager_private_test.go Alerting: Write and Delete multiple alert instances. (#55350) 2022-10-06 14:22:58 +08:00
manager_test.go Alerting: Support values in notification templates (#56457) 2022-10-10 13:40:21 +01:00
manager.go Alerting: Refactor state manager's cache (#56197) 2022-10-06 15:30:12 -04:00
persist.go Alerting: Write and Delete multiple alert instances. (#55350) 2022-10-06 14:22:58 +08:00
state_test.go Alerting: Fix send resolved notifications (#54793) 2022-09-15 17:25:05 +01:00
state.go Alerting: Support values in notification templates (#56457) 2022-10-10 13:40:21 +01:00
template_test.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00
template.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00
testing.go Alerting: Write and Delete multiple alert instances. (#55350) 2022-10-06 14:22:58 +08:00