mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 05:02:12 +08:00
32 lines
980 B
Markdown
32 lines
980 B
Markdown
---
|
|
canonical: https://grafana.com/docs/grafana/latest/alerting/fundamentals/alert-rules/alert-instances/
|
|
description: Learn about Grafana alert instances
|
|
keywords:
|
|
- grafana
|
|
- alerting
|
|
- instances
|
|
labels:
|
|
products:
|
|
- cloud
|
|
- enterprise
|
|
- oss
|
|
title: Alert instances
|
|
weight: 105
|
|
---
|
|
|
|
# Alert instances
|
|
|
|
Grafana managed alerts support multi-dimensional alerting. Each alert rule can create multiple alert instances. This is exceptionally powerful if you are observing multiple series in a single expression.
|
|
|
|
Consider the following PromQL expression:
|
|
|
|
```promql
|
|
sum by(cpu) (
|
|
rate(node_cpu_seconds_total{mode!="idle"}[1m])
|
|
)
|
|
```
|
|
|
|
A rule using this expression will create as many alert instances as the amount of CPUs we are observing after the first evaluation, allowing a single rule to report the status of each CPU.
|
|
|
|
{{< figure src="/static/img/docs/alerting/unified/multi-dimensional-alert.png" caption="A multi-dimensional Grafana managed alert rule" >}}
|