From 6659ed8722278339531634236a01bbd6b0e045ac Mon Sep 17 00:00:00 2001 From: Pangidoan Butar <38452094+doanbutar@users.noreply.github.com> Date: Tue, 12 Dec 2023 22:54:33 +0800 Subject: [PATCH] Special alerts for NoData and Error (#79193) * Special alerts for NoData and Error To avoid confusion why there is no additional label added when setting `Alerting` or `OK` in the No Data and Error handling * ran prettier --------- Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com> --- .../alerting/manage-notifications/view-state-health.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/sources/alerting/manage-notifications/view-state-health.md b/docs/sources/alerting/manage-notifications/view-state-health.md index 845b68271cc..0ebed5afd11 100644 --- a/docs/sources/alerting/manage-notifications/view-state-health.md +++ b/docs/sources/alerting/manage-notifications/view-state-health.md @@ -77,6 +77,10 @@ When evaluation of an alerting rule produces state `NoData` or `Error`, Grafana | **alertname** | Either `DatasourceNoData` or `DatasourceError` depending on the state. | | **datasource_uid** | The UID of the data source that caused the state. | +{{% admonition type="note" %}} +You will need to set the No Data and Error Handling to `No Data` or `Error` in the alert rule as per this doc: https://grafana.com/docs/grafana/latest/alerting/alerting-rules/create-grafana-managed-rule/#configure-no-data-and-error-handling in order to generate the additional labels. +{{% /admonition %}} + You can handle these alerts the same way as regular alerts by adding a silence, route to a contact point, and so on. ## State history view