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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 2 additions and 17 deletions

View File

@ -164,7 +164,6 @@ export interface FeatureToggles {
tableSharedCrosshair?: boolean;
regressionTransformation?: boolean;
displayAnonymousStats?: boolean;
alertStateHistoryAnnotationsFromLoki?: boolean;
lokiQueryHints?: boolean;
kubernetesFeatureToggles?: boolean;
alertingPreviewUpgrade?: boolean;

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)
}

View File

@ -1228,16 +1228,6 @@ var (
AllowSelfServe: false,
Expression: "true", // enabled by default
},
{
Name: "alertStateHistoryAnnotationsFromLoki",
Description: "Enable using Loki as the source for panel annotations generated by alert rules",
Stage: FeatureStageExperimental,
Owner: grafanaAlertingSquad,
HideFromAdminPage: true,
HideFromDocs: true,
RequiresRestart: true,
Created: time.Date(2023, time.November, 30, 12, 0, 0, 0, time.UTC),
},
{
// this is mainly used a a way to quickly disable query hints as a safe guard for our infrastructure
Name: "lokiQueryHints",

View File

@ -145,7 +145,6 @@ pluginsSkipHostEnvVars,experimental,@grafana/plugins-platform-backend,2023-11-15
tableSharedCrosshair,experimental,@grafana/grafana-bi-squad,2023-12-12,false,false,false,true
regressionTransformation,preview,@grafana/grafana-bi-squad,2023-11-24,false,false,false,true
displayAnonymousStats,GA,@grafana/identity-access-team,2023-11-29,false,false,false,true
alertStateHistoryAnnotationsFromLoki,experimental,@grafana/alerting-squad,2023-11-30,false,false,true,false
lokiQueryHints,GA,@grafana/observability-logs,2023-12-18,false,false,false,true
kubernetesFeatureToggles,experimental,@grafana/grafana-operator-experience-squad,2023-12-22,false,false,false,true
alertingPreviewUpgrade,preview,@grafana/alerting-squad,2024-01-03,false,false,true,false

1 Name Stage Owner Created requiresDevMode RequiresLicense RequiresRestart FrontendOnly
145 tableSharedCrosshair experimental @grafana/grafana-bi-squad 2023-12-12 false false false true
146 regressionTransformation preview @grafana/grafana-bi-squad 2023-11-24 false false false true
147 displayAnonymousStats GA @grafana/identity-access-team 2023-11-29 false false false true
alertStateHistoryAnnotationsFromLoki experimental @grafana/alerting-squad 2023-11-30 false false true false
148 lokiQueryHints GA @grafana/observability-logs 2023-12-18 false false false true
149 kubernetesFeatureToggles experimental @grafana/grafana-operator-experience-squad 2023-12-22 false false false true
150 alertingPreviewUpgrade preview @grafana/alerting-squad 2024-01-03 false false true false

View File

@ -591,10 +591,6 @@ const (
// Enables anonymous stats to be shown in the UI for Grafana
FlagDisplayAnonymousStats = "displayAnonymousStats"
// FlagAlertStateHistoryAnnotationsFromLoki
// Enable using Loki as the source for panel annotations generated by alert rules
FlagAlertStateHistoryAnnotationsFromLoki = "alertStateHistoryAnnotationsFromLoki"
// FlagLokiQueryHints
// Enables query hints for Loki
FlagLokiQueryHints = "lokiQueryHints"