mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
* Use relative aliases for all non-current Grafana aliases Prevents non-latest documentation "stealing" the page away from latest and through permanent redirects for latest pages that no longer exist. The redirected pages are indexed by search engines but our robots.txt forbids them crawling the non-latest page. Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Remove aliases from shared pages Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Rewrite all current latest aliases to be next Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Fix typo in latest alias Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Remove all current page aliases find docs/sources -type f -name '*.md' -exec sed -z -i 's#\n *- /docs/grafana/next/[^\n]*\n#\n#' {} \; find docs/sources -type f -name '*.md' -exec sed -Ez -i 's#\n((aliases:\n *-)|aliases:\n)#\n\2#' {} \; Signed-off-by: Jack Baldry <jack.baldry@grafana.com> * Prettier Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
1.5 KiB
1.5 KiB
aliases | draft | keywords | title | weight | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
true |
|
Alert notification templating | 110 |
Alert notification templating
You can provide detailed information to alert notification recipients by injecting alert query data into an alert notification. This topic explains how you can use alert query labels in alert notifications.
You can use labels generated during an alerting query evaluation to create alert notification messages. For multiple unique values for the same label, the values are comma-separated.
When an alert fires, the alerting data series indicates the violation. For resolved alerts, all data series are included in the resolved notification.
This topic explains how you can use alert query labels in alert notifications.
Adding alert label data into your alert notification
- Navigate to the panel you want to add or edit an alert rule for.
- Click on the panel title, and then click Edit.
- On the Alert tab, click Create Alert. If an alert already exists for this panel, then you can edit the alert directly.
- Refer to the alert query labels in the alert rule name and/or alert notification message field by using the
${Label}
syntax. - Click Save in the upper right corner to save the alert rule and the dashboard.