From 5845f140758473ab5ffe789bec4077032fd22839 Mon Sep 17 00:00:00 2001 From: ismail simsek Date: Wed, 29 Nov 2023 18:29:35 +0100 Subject: [PATCH] InfluxDB: Introduce influxqlStreamingParser feature toggle (#78834) introduce influxqlStreamingParser feature toggle --- .../configure-grafana/feature-toggles/index.md | 1 + packages/grafana-data/src/types/featureToggles.gen.ts | 1 + pkg/services/featuremgmt/registry.go | 6 ++++++ pkg/services/featuremgmt/toggles_gen.csv | 1 + pkg/services/featuremgmt/toggles_gen.go | 4 ++++ 5 files changed, 13 insertions(+) diff --git a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md index 02aba0cd42e..0fdd2893cf0 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -103,6 +103,7 @@ Experimental features might be changed or removed without prior notice. | `editPanelCSVDragAndDrop` | Enables drag and drop for CSV and Excel files | | `lokiQuerySplittingConfig` | Give users the option to configure split durations for Loki queries | | `individualCookiePreferences` | Support overriding cookie preferences per user | +| `influxqlStreamingParser` | Enable streaming JSON parser for InfluxDB datasource InfluxQL query language | | `lokiLogsDataplane` | Changes logs responses from Loki to be compliant with the dataplane specification. | | `disableSSEDataplane` | Disables dataplane specific processing in server side expressions. | | `alertStateHistoryLokiSecondary` | Enable Grafana to write alert state history to an external Loki instance in addition to Grafana annotations. | diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index 7c82a1c5baf..33da24411d5 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -65,6 +65,7 @@ export interface FeatureToggles { individualCookiePreferences?: boolean; prometheusMetricEncyclopedia?: boolean; influxdbBackendMigration?: boolean; + influxqlStreamingParser?: boolean; clientTokenRotation?: boolean; prometheusDataplane?: boolean; lokiMetricDataplane?: boolean; diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 3ef7142de07..d10f921d735 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -358,6 +358,12 @@ var ( Expression: "true", // enabled by default AllowSelfServe: falsePtr, }, + { + Name: "influxqlStreamingParser", + Description: "Enable streaming JSON parser for InfluxDB datasource InfluxQL query language", + Stage: FeatureStageExperimental, + Owner: grafanaObservabilityMetricsSquad, + }, { Name: "clientTokenRotation", Description: "Replaces the current in-request token rotation so that the client initiates the rotation", diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 0f96ef71e2f..956556ac376 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -46,6 +46,7 @@ lokiQuerySplittingConfig,experimental,@grafana/observability-logs,false,false,fa individualCookiePreferences,experimental,@grafana/backend-platform,false,false,false,false prometheusMetricEncyclopedia,GA,@grafana/observability-metrics,false,false,false,true influxdbBackendMigration,GA,@grafana/observability-metrics,false,false,false,true +influxqlStreamingParser,experimental,@grafana/observability-metrics,false,false,false,false clientTokenRotation,GA,@grafana/identity-access-team,false,false,false,false prometheusDataplane,GA,@grafana/observability-metrics,false,false,false,false lokiMetricDataplane,GA,@grafana/observability-logs,false,false,false,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 20958599d2f..a37c72933dc 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -195,6 +195,10 @@ const ( // Query InfluxDB InfluxQL without the proxy FlagInfluxdbBackendMigration = "influxdbBackendMigration" + // FlagInfluxqlStreamingParser + // Enable streaming JSON parser for InfluxDB datasource InfluxQL query language + FlagInfluxqlStreamingParser = "influxqlStreamingParser" + // FlagClientTokenRotation // Replaces the current in-request token rotation so that the client initiates the rotation FlagClientTokenRotation = "clientTokenRotation"