Remove Loki annotation toggle (#81296)
This commit is contained in:
1 parent
f101d9df27
commit
2af8158f99
5 files changed
+2
-17
No files matched your search
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user