alerting tutorials update (#106018)
* first * second * third" * 4th * format * typo * $labels * all pretty no pity * order * order2 * typo * order4 * link renamign * titles * test without title heading * test with colon in h1 * removed H1s
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Feedback Link: https://github.com/grafana/tutorials/issues/new
|
||||
categories:
|
||||
- alerting
|
||||
description: Learn to use alert instances and route notifications by labels to contacts, building on your alerting skills in Grafana for more advanced workflows — Part 2.
|
||||
description: Learn to use alert instances and route notifications by labels to contacts.
|
||||
labels:
|
||||
products:
|
||||
- enterprise
|
||||
@@ -10,20 +10,18 @@ labels:
|
||||
- cloud
|
||||
tags:
|
||||
- beginner
|
||||
title: Get started with Grafana Alerting - Part 2
|
||||
weight: 50
|
||||
title: Get started with Grafana Alerting - Multi-dimensional alerts and how to route them
|
||||
weight: 63
|
||||
killercoda:
|
||||
title: Get started with Grafana Alerting - Part 2
|
||||
description: Learn to use alert instances and route notifications by labels to contacts, building on your alerting skills in Grafana for more advanced workflows — Part 2.
|
||||
title: Get started with Grafana Alerting - Multi-dimensional alerts and how to route them
|
||||
description: Learn to use alert instances and route notifications by labels to contacts.
|
||||
backend:
|
||||
imageid: ubuntu
|
||||
---
|
||||
|
||||
<!-- INTERACTIVE page intro.md START -->
|
||||
|
||||
# Get started with Grafana Alerting - Part 2
|
||||
|
||||
The Get started with Grafana Alerting tutorial Part 2 is a continuation of [Get started with Grafana Alerting tutorial Part 1](http://www.grafana.com/tutorials/alerting-get-started/).
|
||||
This tutorial is a continuation of the [Get started with Grafana Alerting - Alert rules](http://www.grafana.com/tutorials/alerting-get-started/) tutorial.
|
||||
|
||||
In this guide, we dig into more complex yet equally fundamental elements of Grafana Alerting: **alert instances** and **notification policies**.
|
||||
|
||||
@@ -58,7 +56,7 @@ There are different ways you can follow along with this tutorial.
|
||||
|
||||
- **Interactive learning environment**
|
||||
|
||||
- Alternatively, you can try out this example in our interactive learning environment: [Get started with Grafana Alerting - Part 2](https://killercoda.com/grafana-labs/course/grafana/alerting-get-started-pt2/). It's a fully configured environment with all the dependencies already installed.
|
||||
- Alternatively, you can try out this example in our interactive learning environment: [Get started with Grafana Alerting - Alert routing](https://killercoda.com/grafana-labs/course/grafana/alerting-get-started-pt2/). It's a fully configured environment with all the dependencies already installed.
|
||||
|
||||
- **Grafana OSS**
|
||||
|
||||
@@ -223,7 +221,7 @@ The alert rule that you are about to create is meant to monitor web traffic page
|
||||
### Create an alert rule
|
||||
|
||||
1. Navigate to **Alerts & IRM > Alerting > Alert rules**.
|
||||
1. Click **New alert rule**.
|
||||
1. Click **+ New alert rule**.
|
||||
|
||||
### Enter an alert rule name
|
||||
|
||||
@@ -249,7 +247,7 @@ Grafana includes a [test data source](https://grafana.com/docs/grafana/latest/da
|
||||
|
||||
1. In the **Alert condition** section:
|
||||
|
||||
- Keep `Last` as the value for the reducer function (`WHEN`), and `1000` as the threshold value. This is the value above which the alert rule should trigger.
|
||||
- Keep `Last` as the value for the reducer function (`WHEN`), and `IS ABOVE 1000` as the threshold value. This is the value above which the alert rule should trigger.
|
||||
|
||||
1. Click **Preview alert rule condition** to run the queries.
|
||||
|
||||
@@ -270,15 +268,16 @@ In the [life cycle](http://grafana.com/docs/grafana/next/alerting/fundamentals/a
|
||||
|
||||
To set up evaluation behavior:
|
||||
|
||||
1. In **Evaluation group and interval**, repeat the above step to create a new evaluation group. Name it `1m` (referring to “1 minute”).
|
||||
1. In the **Evaluation group and interval**, enter a name. For example: `1m-evaluation`.
|
||||
1. Choose an **Evaluation interval** (how often the alert will be evaluated). Choose `1m`.
|
||||
1. Set the **pending period** to `0s` (zero seconds), so the alert rule fires the moment the condition is met.
|
||||
1. Set **Keep firing for** to, `0s`, so the alert stops firing immediately after the condition is no longer true.
|
||||
|
||||
### Configure notifications
|
||||
|
||||
In this section, you can select how you want to route your alert instances. Since we want to route by notification policy, we need to ensure that the labels match the alert instance.
|
||||
|
||||
1. Choose **Use notification policy**.
|
||||
1. Toggle the **Advanced options** button to display matching Notification policies.
|
||||
1. Click **Preview routing**. Based on the existing labels, you should see a preview of what policies are matching with the alerts. There should be two alert instances matching the labels that were previously setup in each notification policy: `device=desktop`, `device=mobile`.
|
||||
|
||||
These [types of labels](https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/annotation-label/#label-types) are generated by the data source query and they can be leveraged to match our notification policies without needing to manually add them to the alert rule.
|
||||
@@ -322,13 +321,13 @@ In this tutorial, you have learned how Grafana Alerting can route individual ale
|
||||
|
||||
If you run into any problems, you are welcome to post questions in our [Grafana Community forum](https://community.grafana.com/).
|
||||
|
||||
## Learn more in [Grafana Alerting Part 3](http://www.grafana.com/tutorials/alerting-get-started-pt3/)
|
||||
## Learn more in [Grafana Alerting - Grouping](http://www.grafana.com/tutorials/alerting-get-started-pt3/)
|
||||
|
||||
<!-- INTERACTIVE ignore START -->
|
||||
|
||||
{{< admonition type="tip" >}}
|
||||
|
||||
In [Get started with Grafana Alerting - Part 3](http://www.grafana.com/tutorials/alerting-get-started-pt3/) you learn how to group alert notifications effectively.
|
||||
In [Get started with Grafana Alerting - Grouping](http://www.grafana.com/tutorials/alerting-get-started-pt3/) you learn how to group alert notifications effectively.
|
||||
|
||||
{{< /admonition >}}
|
||||
|
||||
@@ -336,7 +335,7 @@ In [Get started with Grafana Alerting - Part 3](http://www.grafana.com/tutorials
|
||||
|
||||
{{< docs/ignore >}}
|
||||
|
||||
In [Get started with Grafana Alerting - Part 3](http://www.grafana.com/tutorials/alerting-get-started-pt3/) you learn how to group alert notifications effectively.
|
||||
In [Get started with Grafana Alerting - Grouping](http://www.grafana.com/tutorials/alerting-get-started-pt3/) you learn how to group alert notifications effectively.
|
||||
|
||||
{{< /docs/ignore >}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user