Save your alert rule

The last steps are the notification message and saving.

In this milestone, you add a summary annotation, then save and activate your rule.

  1. In the Configure notification message section, locate the Summary field. The summary is the first line responders see in Slack, PagerDuty, email, and other channels. Keep it brief and use template variables to reference labels or values from your query.

    For the QuickPizza alert you built, use:

    QuickPizza returned {{ $value }} server errors in the last 5 minutes

    Other examples for real alerts:

    If alerting onExample summary
    CPU usageCPU usage is high on {{ $labels.instance }}
    Error rateError rate elevated for {{ $labels.job }}
    Disk spaceDisk space low on {{ $labels.instance }}
  1. Click Save to save and activate your alert rule.

    Your alert rule is now saved and active. Grafana immediately begins evaluating it at your specified interval.

  2. Your alert rule is saved and actively monitoring. When the condition is met and persists past your pending period, the alert fires and notifications are sent to your contact point.

    You’ve created a complete alert rule from query to notification.


page 11 of 12