Remove Loki annotation toggle (#81296)

This commit is contained in:
William Wernert
2024-01-25 12:56:09 -05:00
committed by GitHub
parent f101d9df27
commit 2af8158f99
5 changed files with 2 additions and 17 deletions

View File

@@ -294,5 +294,6 @@ func useStore(cfg setting.UnifiedAlertingStateHistorySettings, ft featuremgmt.Fe
}
// We should only query Loki if annotations do not exist in the database.
return backend == historian.BackendTypeLoki
// To be doubly sure, ensure that the feature toggle to only use Loki is enabled.
return backend == historian.BackendTypeLoki && ft.IsEnabledGlobally(featuremgmt.FlagAlertStateHistoryLokiOnly)
}