2022-04-01 01:32:00 -05:00
// To change feature flags, edit:
// pkg/services/featuremgmt/registry.go
// Then run tests in:
// pkg/services/featuremgmt/toggles_gen_test.go
2022-06-10 06:02:52 -05:00
// twice to generate and validate the feature flag files
2022-04-01 01:32:00 -05:00
2022-01-26 11:44:20 -06:00
package featuremgmt
var (
// Register each toggle here
standardFeatureFlags = [ ] FeatureFlag {
2022-12-07 06:14:53 -06:00
{
Name : "returnUnameHeader" ,
Description : "Return user login as header for authenticated requests" ,
State : FeatureStateAlpha ,
} ,
2022-10-06 01:22:58 -05:00
{
Name : "alertingBigTransactions" ,
Description : "Use big transactions for alerting database writes" ,
State : FeatureStateAlpha ,
} ,
2022-01-26 11:44:20 -06:00
{
Name : "trimDefaults" ,
Description : "Use cue schema to remove values that will be applied automatically" ,
State : FeatureStateBeta ,
} ,
{
2022-05-24 03:34:47 -05:00
Name : "disableEnvelopeEncryption" ,
Description : "Disable envelope encryption (emergency only)" ,
State : FeatureStateStable ,
2022-01-26 11:44:20 -06:00
} ,
{
Name : "database_metrics" ,
2022-11-30 15:50:20 -06:00
Description : "Add Prometheus metrics for database tables" ,
2022-01-26 11:44:20 -06:00
State : FeatureStateStable ,
} ,
{
Name : "dashboardPreviews" ,
Description : "Create and show thumbnails for dashboard search results" ,
State : FeatureStateAlpha ,
} ,
2022-02-10 12:45:00 -06:00
{
2022-04-24 16:55:10 -05:00
Name : "dashboardPreviewsAdmin" ,
Description : "Manage the dashboard previews crawler process from the UI" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
2022-02-17 02:34:07 -06:00
} ,
2022-01-26 11:44:20 -06:00
{
Name : "live-config" ,
2022-11-30 15:50:20 -06:00
Description : "Save Grafana Live configuration in SQL tables" ,
2022-01-26 11:44:20 -06:00
State : FeatureStateAlpha ,
} ,
{
Name : "live-pipeline" ,
2022-11-30 15:50:20 -06:00
Description : "Enable a generic live processing pipeline" ,
2022-01-26 11:44:20 -06:00
State : FeatureStateAlpha ,
} ,
{
Name : "live-service-web-worker" ,
Description : "This will use a webworker thread to processes events rather than the main thread" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
{
Name : "queryOverLive" ,
2022-11-30 15:50:20 -06:00
Description : "Use Grafana Live WebSocket to execute backend queries" ,
2022-01-26 11:44:20 -06:00
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-02-15 12:26:03 -06:00
{
2022-05-02 14:01:29 -05:00
Name : "panelTitleSearch" ,
Description : "Search for dashboards using panel title" ,
2022-11-30 15:50:20 -06:00
State : FeatureStateBeta ,
2022-02-15 12:26:03 -06:00
} ,
2022-06-09 11:56:15 -05:00
{
Name : "tempoApmTable" ,
Description : "Show APM table" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-05-30 10:43:32 -05:00
{
Name : "prometheusAzureOverrideAudience" ,
Description : "Experimental. Allow override default AAD audience for Azure Prometheus endpoint" ,
State : FeatureStateBeta ,
} ,
2022-01-26 11:44:20 -06:00
{
Name : "showFeatureFlagsInUI" ,
Description : "Show feature flags in the settings UI" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
} ,
2022-04-07 13:30:19 -05:00
{
2022-06-30 18:10:30 -05:00
Name : "publicDashboards" ,
2022-11-30 15:50:20 -06:00
Description : "Enables public access to dashboards" ,
2022-06-30 18:10:30 -05:00
State : FeatureStateAlpha ,
2022-04-07 13:30:19 -05:00
} ,
2023-01-03 13:45:15 -06:00
{
Name : "publicDashboardsEmailSharing" ,
Description : "Allows public dashboard sharing to be restricted to only allowed emails" ,
State : FeatureStateAlpha ,
RequiresLicense : true ,
RequiresDevMode : true ,
} ,
2022-03-01 16:46:52 -06:00
{
Name : "lokiLive" ,
2022-11-30 15:50:20 -06:00
Description : "Support WebSocket streaming for loki (early prototype)" ,
2022-03-01 16:46:52 -06:00
State : FeatureStateAlpha ,
} ,
2022-06-13 01:33:46 -05:00
{
Name : "lokiDataframeApi" ,
2022-11-30 15:50:20 -06:00
Description : "Use experimental loki api for WebSocket streaming (early prototype)" ,
2022-06-13 01:33:46 -05:00
State : FeatureStateAlpha ,
} ,
2022-10-06 09:35:30 -05:00
{
2022-11-08 09:22:40 -06:00
Name : "lokiMonacoEditor" ,
Description : "Access to Monaco query editor for Loki" ,
2022-11-30 15:50:20 -06:00
State : FeatureStateStable ,
2022-11-08 09:22:40 -06:00
Expression : "true" ,
FrontendOnly : true ,
2022-10-06 09:35:30 -05:00
} ,
2022-02-08 06:38:43 -06:00
{
Name : "swaggerUi" ,
Description : "Serves swagger UI" ,
State : FeatureStateBeta ,
} ,
2022-02-03 05:53:23 -06:00
{
Name : "featureHighlights" ,
2022-11-30 15:50:20 -06:00
Description : "Highlight Grafana Enterprise features" ,
2022-02-03 05:53:23 -06:00
State : FeatureStateStable ,
} ,
2022-02-22 01:47:42 -06:00
{
Name : "dashboardComments" ,
Description : "Enable dashboard-wide comments" ,
State : FeatureStateAlpha ,
} ,
{
Name : "annotationComments" ,
Description : "Enable annotation comments" ,
State : FeatureStateAlpha ,
} ,
2022-02-15 10:54:27 -06:00
{
Name : "migrationLocking" ,
Description : "Lock database during migrations" ,
State : FeatureStateBeta ,
} ,
2022-03-17 12:19:23 -05:00
{
Name : "storage" ,
Description : "Configurable storage for dashboards, datasources, and resources" ,
State : FeatureStateAlpha ,
} ,
2022-12-13 09:41:16 -06:00
{
Name : "k8s" ,
Description : "Explore native k8s integrations" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
} ,
2023-01-25 13:10:16 -06:00
{
Name : "k8sDashboards" ,
Description : "Save dashboards via k8s" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
} ,
2022-12-20 04:13:37 -06:00
{
Name : "supportBundles" ,
Description : "Support bundles for troubleshooting" ,
State : FeatureStateAlpha ,
} ,
2022-07-14 17:36:17 -05:00
{
2022-07-29 01:26:44 -05:00
Name : "dashboardsFromStorage" ,
Description : "Load dashboards from the generic storage interface" ,
State : FeatureStateAlpha ,
RequiresDevMode : true , // Also a gate on automatic git storage (for now)
2022-07-14 17:36:17 -05:00
} ,
2022-04-25 18:59:18 -05:00
{
Name : "export" ,
Description : "Export grafana instance (to git, etc)" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
} ,
2022-03-14 14:07:45 -05:00
{
Name : "azureMonitorResourcePickerForMetrics" ,
Description : "New UI for Azure Monitor Metrics Query" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
FrontendOnly : true ,
} ,
2022-08-31 09:24:20 -05:00
{
Name : "exploreMixedDatasource" ,
Description : "Enable mixed datasource in Explore" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-04-26 08:31:27 -05:00
{
Name : "tracing" ,
Description : "Adds trace ID to error notifications" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-04-21 16:50:34 -05:00
{
2022-11-03 12:34:01 -05:00
Name : "commandPalette" ,
Description : "Enable command palette" ,
State : FeatureStateStable ,
Expression : "true" , // enabled by default
FrontendOnly : true ,
2022-04-21 16:50:34 -05:00
} ,
2022-09-16 08:14:27 -05:00
{
Name : "correlations" ,
Description : "Correlations page" ,
State : FeatureStateAlpha ,
} ,
2022-04-29 04:43:04 -05:00
{
Name : "cloudWatchDynamicLabels" ,
Description : "Use dynamic labels instead of alias patterns in CloudWatch datasource" ,
State : FeatureStateStable ,
2022-11-03 12:34:01 -05:00
Expression : "true" , // enabled by default
2022-04-29 04:43:04 -05:00
} ,
2022-05-03 11:02:20 -05:00
{
Name : "datasourceQueryMultiStatus" ,
Description : "Introduce HTTP 207 Multi Status for api/ds/query" ,
State : FeatureStateAlpha ,
} ,
2022-05-05 15:46:18 -05:00
{
Name : "traceToMetrics" ,
Description : "Enable trace to metrics links" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-10-25 20:20:41 -05:00
{
Name : "newDBLibrary" ,
Description : "Use jmoiron/sqlx rather than xorm for a few backend services" ,
State : FeatureStateBeta ,
} ,
2022-05-21 19:44:12 -05:00
{
Name : "validateDashboardsOnSave" ,
Description : "Validate dashboard JSON POSTed to api/dashboards/db" ,
2022-11-30 15:50:20 -06:00
State : FeatureStateBeta ,
2022-05-21 19:44:12 -05:00
RequiresRestart : true ,
} ,
2022-06-10 19:12:56 -05:00
{
Name : "autoMigrateGraphPanels" ,
Description : "Replace the angular graph panel with timeseries" ,
State : FeatureStateBeta ,
FrontendOnly : true ,
} ,
2022-05-24 15:17:11 -05:00
{
Name : "prometheusWideSeries" ,
Description : "Enable wide series responses in the Prometheus datasource" ,
State : FeatureStateAlpha ,
} ,
2022-05-31 14:03:34 -05:00
{
Name : "canvasPanelNesting" ,
Description : "Allow elements nesting" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-07-07 01:53:02 -05:00
{
Name : "scenes" ,
Description : "Experimental framework to build interactive dashboards" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-07-12 15:27:37 -05:00
{
Name : "disableSecretsCompatibility" ,
Description : "Disable duplicated secret storage in legacy tables" ,
State : FeatureStateAlpha ,
RequiresRestart : true ,
} ,
2022-06-10 03:56:55 -05:00
{
Name : "logRequestsInstrumentedAsUnknown" ,
Description : "Logs the path for requests that are instrumented as unknown" ,
2022-11-30 15:50:20 -06:00
State : FeatureStateAlpha ,
2022-06-10 05:13:31 -05:00
} ,
{
Name : "dataConnectionsConsole" ,
2022-11-30 15:50:20 -06:00
Description : "Enables a new top-level page called Connections. This page is an experiment that provides a better experience when you install and configure data sources and other plugins." ,
2022-06-10 03:56:55 -05:00
State : FeatureStateAlpha ,
} ,
2022-06-10 06:02:52 -05:00
{
Name : "internationalization" ,
2022-11-23 08:23:26 -06:00
Description : "Enables internationalization" ,
State : FeatureStateStable ,
2022-12-01 10:27:52 -06:00
Expression : "true" , // enabled by default
2022-06-10 06:02:52 -05:00
} ,
2022-06-20 09:25:43 -05:00
{
Name : "topnav" ,
Description : "New top nav and page layouts" ,
State : FeatureStateAlpha ,
} ,
2022-08-24 11:57:59 -05:00
{
2022-09-26 15:25:34 -05:00
Name : "grpcServer" ,
Description : "Run GRPC server" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
2022-10-06 14:48:53 -05:00
} ,
{
2022-11-30 16:52:15 -06:00
Name : "entityStore" ,
Description : "SQL-based entity store (requires storage flag also)" ,
2022-10-06 14:48:53 -05:00
State : FeatureStateAlpha ,
RequiresDevMode : true ,
} ,
2022-10-07 05:39:14 -05:00
{
Name : "flameGraph" ,
Description : "Show the flame graph" ,
2022-11-28 05:39:12 -06:00
State : FeatureStateAlpha ,
} ,
{
Name : "cloudWatchCrossAccountQuerying" ,
2023-01-27 15:46:08 -06:00
Description : "Enables cross-account querying in CloudWatch datasources" ,
State : FeatureStateStable ,
Expression : "true" , //enabled by default
2022-10-07 05:39:14 -05:00
} ,
2022-09-05 10:39:45 -05:00
{
Name : "redshiftAsyncQueryDataSupport" ,
Description : "Enable async query data support for Redshift" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
{
Name : "athenaAsyncQueryDataSupport" ,
Description : "Enable async query data support for Athena" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-09-12 02:50:54 -05:00
{
Name : "increaseInMemDatabaseQueryCache" ,
Description : "Enable more in memory caching for database queries" ,
2022-11-30 15:50:20 -06:00
State : FeatureStateAlpha ,
2022-09-12 02:50:54 -05:00
} ,
2022-10-10 10:03:16 -05:00
{
Name : "newPanelChromeUI" ,
Description : "Show updated look and feel of grafana-ui PanelChrome: panel header, icons, and menu" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-10-07 13:31:45 -05:00
{
Name : "queryLibrary" ,
Description : "Reusable query library" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
} ,
2022-10-14 08:51:05 -05:00
{
Name : "showDashboardValidationWarnings" ,
2022-11-30 15:50:20 -06:00
Description : "Show warnings when dashboards do not validate against the schema" ,
State : FeatureStateAlpha ,
2022-10-14 08:51:05 -05:00
} ,
2022-10-12 06:43:35 -05:00
{
Name : "mysqlAnsiQuotes" ,
2022-11-30 15:50:20 -06:00
Description : "Use double quotes to escape keyword in a MySQL query" ,
2022-10-12 06:43:35 -05:00
State : FeatureStateAlpha ,
} ,
2022-11-02 08:51:51 -05:00
{
Name : "datasourceLogger" ,
Description : "Logs all datasource requests" ,
2022-11-30 15:50:20 -06:00
State : FeatureStateBeta ,
2022-11-02 08:51:51 -05:00
} ,
2022-10-19 11:10:09 -05:00
{
2023-01-04 10:52:08 -06:00
Name : "accessControlOnCall" ,
Description : "Access control primitives for OnCall" ,
State : FeatureStateBeta ,
2022-10-19 11:10:09 -05:00
} ,
2022-10-26 09:15:14 -05:00
{
Name : "nestedFolders" ,
Description : "Enable folder nesting" ,
State : FeatureStateAlpha ,
RequiresDevMode : true ,
} ,
2022-11-14 09:47:46 -06:00
{
Name : "accessTokenExpirationCheck" ,
Description : "Enable OAuth access_token expiration check and token refresh using the refresh_token" ,
State : FeatureStateStable ,
} ,
2022-11-10 09:35:15 -06:00
{
Name : "elasticsearchBackendMigration" ,
Description : "Use Elasticsearch as backend data source" ,
State : FeatureStateAlpha ,
} ,
2022-12-07 17:29:38 -06:00
{
Name : "datasourceOnboarding" ,
Description : "Enable data source onboarding page" ,
State : FeatureStateAlpha ,
} ,
2022-11-29 23:50:59 -06:00
{
Name : "secureSocksDatasourceProxy" ,
Description : "Enable secure socks tunneling for supported core datasources" ,
2022-11-30 15:50:20 -06:00
State : FeatureStateAlpha ,
2022-11-29 23:50:59 -06:00
} ,
2022-11-29 03:57:47 -06:00
{
Name : "authnService" ,
Description : "Use new auth service to perform authentication" ,
State : FeatureStateAlpha ,
} ,
2022-12-07 03:55:48 -06:00
{
Name : "sessionRemoteCache" ,
Description : "Enable using remote cache for user sessions" ,
State : FeatureStateAlpha ,
} ,
2022-12-19 09:00:15 -06:00
{
Name : "disablePrometheusExemplarSampling" ,
Description : "Disable Prometheus examplar sampling" ,
State : FeatureStateStable ,
} ,
2022-12-14 08:44:14 -06:00
{
Name : "alertingBacktesting" ,
Description : "Rule backtesting API for alerting" ,
State : FeatureStateAlpha ,
} ,
2023-01-24 03:43:44 -06:00
{
Name : "editPanelCSVDragAndDrop" ,
Description : "Enables drag and drop for CSV and Excel files" ,
FrontendOnly : true ,
State : FeatureStateAlpha ,
} ,
2023-01-13 17:29:29 -06:00
{
Name : "alertingNoNormalState" ,
Description : "Stop maintaining state of alerts that are not firing" ,
State : FeatureStateBeta ,
RequiresRestart : false ,
} ,
2023-01-20 09:29:23 -06:00
{
Name : "azureMultipleResourcePicker" ,
Description : "Azure multiple resource picker" ,
State : FeatureStateAlpha ,
} ,
2023-01-24 06:41:09 -06:00
{
Name : "topNavCommandPalette" ,
Description : "Launch the Command Palette from the top navigation search box" ,
State : FeatureStateBeta ,
FrontendOnly : true ,
} ,
2023-01-27 10:30:25 -06:00
{
Name : "logsSampleInExplore" ,
Description : "Enables access to the logs sample feature in Explore" ,
State : FeatureStateStable ,
Expression : "true" , //turned on by default
FrontendOnly : true ,
} ,
2023-01-27 08:12:01 -06:00
{
Name : "logsContextDatasourceUi" ,
Description : "Allow datasource to provide custom UI for context view" ,
State : FeatureStateAlpha ,
FrontendOnly : true ,
} ,
2022-01-26 11:44:20 -06:00
}
)