mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user