Alerting: Allow state history to be disabled through configuration (#61006)

* Add configuration option for if state history should be enabled

* Inject no-op when history is disabled
This commit is contained in:
Alexander Weaver
2023-01-05 12:21:07 -06:00
committed by GitHub
parent 48fbe51d37
commit 8c3a5f6da0
4 changed files with 41 additions and 2 deletions

View File

@@ -964,6 +964,10 @@ upload_external_image_storage = false
# For example: `disabled_labels=grafana_folder`
disabled_labels =
[unified_alerting.state_history]
# Enable the state history functionality in Unified Alerting. The previous states of alert rules will be visible in panels and in the UI.
enabled = true
#################################### Alerting ############################
[alerting]
# Enable the legacy alerting sub-system and interface. If Unified Alerting is already enabled and you try to go back to legacy alerting, all data that is part of Unified Alerting will be deleted. When this configuration section and flag are not defined, the state is defined at runtime. See the documentation for more details.