2022-05-26 10:06:25 -05:00
---
aliases:
- /docs/grafana/latest/alerting/fundamentals/state-and-health/
- /docs/grafana/llatest/alerting/unified-alerting/alerting-rules/state-and-health/
description: State and Health of alerting rules
keywords:
- grafana
- alerting
- guide
- state
title: State and health of alerting rules
---
2021-10-27 15:57:54 -05:00
# State and health of alerting rules
2022-05-24 10:31:57 -05:00
The state and health of alerting rules help you understand several key status indicators about your alerts.
2021-10-27 15:57:54 -05:00
2022-05-24 10:31:57 -05:00
There are three key components: [alert rule state ](#alert-rule-state ), [alert instance state ](#alert-instance-state ), and [alert rule health ](#alert-rule-health ). Although related, each component conveys subtly different information.
2021-10-27 15:57:54 -05:00
2022-05-24 10:31:57 -05:00
## Alert rule state
2021-10-27 15:57:54 -05:00
2022-05-24 10:31:57 -05:00
An alert rule can be in either of the following states:
2021-10-27 15:57:54 -05:00
2022-05-24 10:31:57 -05:00
| State | Description |
| ----------- | ---------------------------------------------------------------------------------------------- |
| **Normal** | None of the time series returned by the evaluation engine is in a `Pending` or `Firing` state. |
| **Pending** | At least one time series returned by the evaluation engine is `Pending` . |
| **Firing** | At least one time series returned by the evaluation engine is `Firing` . |
2021-10-27 15:57:54 -05:00
2022-05-24 10:31:57 -05:00
> **Note:** Alerts will transition first to `pending` and then `firing`, thus it will take at least two evaluation cycles before an alert is fired.
2021-10-27 15:57:54 -05:00
2022-05-24 10:31:57 -05:00
## Alert instance state
An alert instance can be in either of the following states:
| State | Description |
| ------------ | --------------------------------------------------------------------------------------------- |
| **Normal** | The state of an alert that is neither firing nor pending, everything is working correctly. |
| **Pending** | The state of an alert that has been active for less than the configured threshold duration. |
| **Alerting** | The state of an alert that has been active for longer than the configured threshold duration. |
| **NoData** | No data has been received for the configured time window. |
| **Error** | The error that occurred when attempting to evaluate an alerting rule. |
## Alert rule health
An alert rule can have one the following health statuses:
| State | Description |
| ---------- | ---------------------------------------------------------------------------------- |
| **Ok** | No error when evaluating an alerting rule. |
| **Error** | An error occurred when evaluating an alerting rule. |
| **NoData** | The absence of data in at least one time series returned during a rule evaluation. |
## Special alerts for `NoData` and `Error`
2022-06-08 06:35:37 -05:00
When evaluation of an alerting rule produces state `NoData` or `Error` , Grafana Alerting will generate alert instances that have the following additional labels:
2022-05-24 10:31:57 -05:00
| Label | Description |
| ------------------ | ---------------------------------------------------------------------- |
| **alertname** | Either `DatasourceNoData` or `DatasourceError` depending on the state. |
| **datasource_uid** | The UID of the data source that caused the state. |
You can handle these alerts the same way as regular alerts by adding a silence, route to a contact point, and so on.