Alerting: Resolve stale state + add state reason to notifications (#49352)

* adds a new reserved annotation `grafana_state_reason`
* explicitly resolve stale states
This commit is contained in:
Yuriy Tseretyan
2022-09-21 13:24:47 -04:00
committed by GitHub
parent 9c2f3045b4
commit 199996cbf9
5 changed files with 133 additions and 5 deletions

View File

@@ -98,6 +98,13 @@ const (
// FolderTitleLabel is the label that will contain the title of an alert's folder/namespace.
FolderTitleLabel = GrafanaReservedLabelPrefix + "folder"
// StateReasonAnnotation is the name of the annotation that explains the difference between evaluation state and alert state (i.e. changing state when NoData or Error).
StateReasonAnnotation = GrafanaReservedLabelPrefix + "state_reason"
)
var (
StateReasonMissingSeries = "MissingSeries"
)
var (