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-01-26 11:44:20 -06:00
|
|
|
package featuremgmt
|
|
|
|
|
|
|
|
var (
|
|
|
|
// Register each toggle here
|
|
|
|
standardFeatureFlags = []FeatureFlag{
|
|
|
|
{
|
|
|
|
Name: "trimDefaults",
|
|
|
|
Description: "Use cue schema to remove values that will be applied automatically",
|
|
|
|
State: FeatureStateBeta,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "envelopeEncryption",
|
|
|
|
Description: "encrypt secrets",
|
|
|
|
State: FeatureStateBeta,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "httpclientprovider_azure_auth",
|
2022-04-01 06:26:49 -05:00
|
|
|
Description: "Experimental. Allow datasources to configure Azure authentication directly via JsonData",
|
2022-01-26 11:44:20 -06:00
|
|
|
State: FeatureStateBeta,
|
|
|
|
},
|
|
|
|
{
|
2022-04-21 04:41:37 -05:00
|
|
|
Name: "serviceAccounts",
|
2022-02-02 09:32:37 -06:00
|
|
|
Description: "support service accounts",
|
|
|
|
State: FeatureStateBeta,
|
2022-01-26 11:44:20 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "database_metrics",
|
|
|
|
Description: "Add prometheus metrics for database tables",
|
|
|
|
State: FeatureStateStable,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "dashboardPreviews",
|
|
|
|
Description: "Create and show thumbnails for dashboard search results",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
2022-02-10 12:45:00 -06:00
|
|
|
{
|
|
|
|
Name: "dashboardPreviewsScheduler",
|
|
|
|
Description: "Schedule automatic updates to dashboard previews",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
2022-02-17 02:34:07 -06:00
|
|
|
{
|
|
|
|
Name: "dashboardPreviewsAdmin",
|
|
|
|
Description: "Manage the dashboard previews crawler process from the UI",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
2022-01-26 11:44:20 -06:00
|
|
|
{
|
|
|
|
Name: "live-config",
|
|
|
|
Description: "Save grafana live configuration in SQL tables",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "live-pipeline",
|
|
|
|
Description: "enable a generic live processing pipeline",
|
|
|
|
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",
|
|
|
|
Description: "Use grafana live websocket to execute backend queries",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
FrontendOnly: true,
|
|
|
|
},
|
2022-02-15 12:26:03 -06:00
|
|
|
{
|
|
|
|
Name: "panelTitleSearch",
|
|
|
|
Description: "Search for dashboards using panel title",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
RequiresDevMode: true, // only supported in dev mode right now
|
|
|
|
},
|
2022-01-26 11:44:20 -06:00
|
|
|
{
|
|
|
|
Name: "tempoSearch",
|
|
|
|
Description: "Enable searching in tempo datasources",
|
|
|
|
State: FeatureStateBeta,
|
|
|
|
FrontendOnly: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "tempoBackendSearch",
|
|
|
|
Description: "Use backend for tempo search",
|
|
|
|
State: FeatureStateBeta,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "tempoServiceGraph",
|
|
|
|
Description: "show service",
|
|
|
|
State: FeatureStateBeta,
|
|
|
|
FrontendOnly: true,
|
|
|
|
},
|
2022-02-07 01:43:48 -06:00
|
|
|
{
|
|
|
|
Name: "lokiBackendMode",
|
|
|
|
Description: "Loki datasource works as backend datasource",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
FrontendOnly: true,
|
|
|
|
},
|
2022-01-26 11:44:20 -06:00
|
|
|
{
|
2022-01-27 06:43:12 -06:00
|
|
|
Name: "accesscontrol",
|
|
|
|
Description: "Support robust access control",
|
|
|
|
State: FeatureStateBeta,
|
2022-01-26 11:44:20 -06:00
|
|
|
},
|
2022-03-31 04:40:57 -05:00
|
|
|
{
|
|
|
|
Name: "accesscontrol-builtins",
|
|
|
|
Description: "Simplify access control builtin roles",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
RequiresDevMode: true,
|
|
|
|
},
|
2022-01-26 11:44:20 -06:00
|
|
|
{
|
|
|
|
Name: "prometheus_azure_auth",
|
2022-04-01 06:26:49 -05:00
|
|
|
Description: "Experimental. Azure authentication for Prometheus datasource",
|
2022-01-26 11:44:20 -06:00
|
|
|
State: FeatureStateBeta,
|
|
|
|
},
|
2022-02-09 12:26:16 -06:00
|
|
|
{
|
|
|
|
Name: "influxdbBackendMigration",
|
|
|
|
Description: "Query InfluxDB InfluxQL without the proxy",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
FrontendOnly: true,
|
|
|
|
},
|
2022-01-26 11:44:20 -06:00
|
|
|
{
|
|
|
|
Name: "newNavigation",
|
|
|
|
Description: "Try the next gen navigation model",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "showFeatureFlagsInUI",
|
|
|
|
Description: "Show feature flags in the settings UI",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
RequiresDevMode: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "disable_http_request_histogram",
|
|
|
|
Description: "Do not create histograms for http requests",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
Name: "validatedQueries",
|
|
|
|
Description: "only execute the query saved in a panel",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
RequiresDevMode: true,
|
|
|
|
},
|
2022-04-07 13:30:19 -05:00
|
|
|
{
|
|
|
|
Name: "publicDashboards",
|
|
|
|
Description: "enables public access to dashboards",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
RequiresDevMode: true,
|
|
|
|
},
|
2022-03-01 16:46:52 -06:00
|
|
|
{
|
|
|
|
Name: "lokiLive",
|
|
|
|
Description: "support websocket streaming for loki (early prototype)",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
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",
|
|
|
|
Description: "Highlight Enterprise features",
|
|
|
|
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-30 12:07:41 -05:00
|
|
|
{
|
|
|
|
Name: "saveDashboardDrawer",
|
|
|
|
Description: "Use a drawer to show save dashboard dialog",
|
|
|
|
State: FeatureStateBeta,
|
|
|
|
},
|
2022-03-17 12:19:23 -05:00
|
|
|
{
|
|
|
|
Name: "storage",
|
|
|
|
Description: "Configurable storage for dashboards, datasources, and resources",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
2022-04-01 01:32:00 -05:00
|
|
|
{
|
|
|
|
Name: "alertProvisioning",
|
|
|
|
Description: "Provisioning-friendly routes for alerting",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
2022-03-17 12:19:23 -05:00
|
|
|
{
|
|
|
|
Name: "storageLocalUpload",
|
|
|
|
Description: "allow uploads to local storage",
|
|
|
|
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-04-07 03:26:01 -05:00
|
|
|
{
|
|
|
|
Name: "explore2Dashboard",
|
|
|
|
Description: "Experimental Explore to Dashboard workflow",
|
|
|
|
State: FeatureStateBeta,
|
|
|
|
FrontendOnly: true,
|
|
|
|
},
|
2022-04-20 04:42:32 -05:00
|
|
|
{
|
|
|
|
Name: "persistNotifications",
|
|
|
|
Description: "PoC Notifications page",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
FrontendOnly: true,
|
|
|
|
},
|
2022-04-21 16:50:34 -05:00
|
|
|
{
|
|
|
|
Name: "commandPalette",
|
|
|
|
Description: "Enable command palette",
|
|
|
|
State: FeatureStateAlpha,
|
|
|
|
},
|
2022-01-26 11:44:20 -06:00
|
|
|
}
|
|
|
|
)
|