From 36ff0fe63a7710eb496f2f048feb71e6eb6e3c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ida=20=C5=A0tambuk?= Date: Tue, 2 Jul 2024 12:34:12 +0200 Subject: [PATCH] Features: Add cloudwatchMetricInsightsCrossAccount feature toggle (#89848) --- .../configure-grafana/feature-toggles/index.md | 1 + .../grafana-data/src/types/featureToggles.gen.ts | 1 + pkg/services/featuremgmt/registry.go | 7 +++++++ pkg/services/featuremgmt/toggles_gen.csv | 1 + pkg/services/featuremgmt/toggles_gen.go | 4 ++++ pkg/services/featuremgmt/toggles_gen.json | 13 +++++++++++++ 6 files changed, 27 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 eaa7b073602..4ca23b37fe5 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -192,6 +192,7 @@ Experimental features might be changed or removed without prior notice. | `databaseReadReplica` | Use a read replica for some database queries. | | `alertingApiServer` | Register Alerting APIs with the K8s API server | | `dashboardRestoreUI` | Enables the frontend to be able to restore a recently deleted dashboard | +| `cloudwatchMetricInsightsCrossAccount` | Enables cross account observability for Cloudwatch Metric Insights | ## Development feature toggles diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index 2726e598147..c25b96f7f9f 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -200,4 +200,5 @@ export interface FeatureToggles { dashboardRestoreUI?: boolean; cloudWatchRoundUpEndTime?: boolean; bodyScrolling?: boolean; + cloudwatchMetricInsightsCrossAccount?: boolean; } diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 3a0764fbb83..4ac2ecc0d30 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -1371,6 +1371,13 @@ var ( HideFromDocs: true, HideFromAdminPage: true, }, + { + Name: "cloudwatchMetricInsightsCrossAccount", + Description: "Enables cross account observability for Cloudwatch Metric Insights", + Stage: FeatureStageExperimental, + Owner: awsDatasourcesSquad, + FrontendOnly: true, + }, } ) diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index 71699a4e6ec..582942e6b46 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -181,3 +181,4 @@ alertingApiServer,experimental,@grafana/alerting-squad,false,true,false dashboardRestoreUI,experimental,@grafana/grafana-frontend-platform,false,false,false cloudWatchRoundUpEndTime,GA,@grafana/aws-datasources,false,false,false bodyScrolling,experimental,@grafana/grafana-frontend-platform,false,false,true +cloudwatchMetricInsightsCrossAccount,experimental,@grafana/aws-datasources,false,false,true diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index ea33898217c..644b10c4473 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -734,4 +734,8 @@ const ( // FlagBodyScrolling // Adjusts Page to make body the scrollable element FlagBodyScrolling = "bodyScrolling" + + // FlagCloudwatchMetricInsightsCrossAccount + // Enables cross account observability for Cloudwatch Metric Insights + FlagCloudwatchMetricInsightsCrossAccount = "cloudwatchMetricInsightsCrossAccount" ) diff --git a/pkg/services/featuremgmt/toggles_gen.json b/pkg/services/featuremgmt/toggles_gen.json index 99143386068..e6f2ff21a65 100644 --- a/pkg/services/featuremgmt/toggles_gen.json +++ b/pkg/services/featuremgmt/toggles_gen.json @@ -590,6 +590,19 @@ "codeowner": "@grafana/aws-datasources" } }, + { + "metadata": { + "name": "cloudwatchMetricInsightsCrossAccount", + "resourceVersion": "1719497905377", + "creationTimestamp": "2024-06-27T14:18:25Z" + }, + "spec": { + "description": "Enables cross account observability for Cloudwatch Metric Insights", + "stage": "experimental", + "codeowner": "@grafana/aws-datasources", + "frontend": true + } + }, { "metadata": { "name": "configurableSchedulerTick",