| 
									
										
										
										
											2022-01-27 01:44:20 +08: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", | 
					
						
							|  |  |  | 			Description: "use http client for azure auth", | 
					
						
							|  |  |  | 			State:       FeatureStateBeta, | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		{ | 
					
						
							| 
									
										
										
										
											2022-02-02 23:32:37 +08:00
										 |  |  | 			Name:        "service-accounts", | 
					
						
							|  |  |  | 			Description: "support service accounts", | 
					
						
							|  |  |  | 			State:       FeatureStateBeta, | 
					
						
							| 
									
										
										
										
											2022-01-27 01:44:20 +08: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-11 02:45:00 +08:00
										 |  |  | 		{ | 
					
						
							|  |  |  | 			Name:        "dashboardPreviewsScheduler", | 
					
						
							|  |  |  | 			Description: "Schedule automatic updates to dashboard previews", | 
					
						
							|  |  |  | 			State:       FeatureStateAlpha, | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2022-01-27 01:44:20 +08: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, | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		{ | 
					
						
							|  |  |  | 			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 15:43:48 +08:00
										 |  |  | 		{ | 
					
						
							|  |  |  | 			Name:         "lokiBackendMode", | 
					
						
							|  |  |  | 			Description:  "Loki datasource works as backend datasource", | 
					
						
							|  |  |  | 			State:        FeatureStateAlpha, | 
					
						
							|  |  |  | 			FrontendOnly: true, | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2022-01-27 01:44:20 +08:00
										 |  |  | 		{ | 
					
						
							| 
									
										
										
										
											2022-01-27 20:43:12 +08:00
										 |  |  | 			Name:        "accesscontrol", | 
					
						
							|  |  |  | 			Description: "Support robust access control", | 
					
						
							|  |  |  | 			State:       FeatureStateBeta, | 
					
						
							| 
									
										
										
										
											2022-01-27 01:44:20 +08:00
										 |  |  | 		}, | 
					
						
							|  |  |  | 		{ | 
					
						
							|  |  |  | 			Name:        "prometheus_azure_auth", | 
					
						
							|  |  |  | 			Description: "Use azure authentication for prometheus datasource", | 
					
						
							|  |  |  | 			State:       FeatureStateBeta, | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2022-02-10 02:26:16 +08:00
										 |  |  | 		{ | 
					
						
							|  |  |  | 			Name:         "influxdbBackendMigration", | 
					
						
							|  |  |  | 			Description:  "Query InfluxDB InfluxQL without the proxy", | 
					
						
							|  |  |  | 			State:        FeatureStateAlpha, | 
					
						
							|  |  |  | 			FrontendOnly: true, | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2022-01-27 01:44:20 +08: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-02-08 20:38:43 +08:00
										 |  |  | 		{ | 
					
						
							|  |  |  | 			Name:        "swaggerUi", | 
					
						
							|  |  |  | 			Description: "Serves swagger UI", | 
					
						
							|  |  |  | 			State:       FeatureStateBeta, | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2022-02-03 19:53:23 +08:00
										 |  |  | 		{ | 
					
						
							|  |  |  | 			Name:        "featureHighlights", | 
					
						
							|  |  |  | 			Description: "Highlight Enterprise features", | 
					
						
							|  |  |  | 			State:       FeatureStateStable, | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2022-02-16 00:54:27 +08:00
										 |  |  | 		{ | 
					
						
							|  |  |  | 			Name:        "migrationLocking", | 
					
						
							|  |  |  | 			Description: "Lock database during migrations", | 
					
						
							|  |  |  | 			State:       FeatureStateBeta, | 
					
						
							|  |  |  | 		}, | 
					
						
							| 
									
										
										
										
											2022-01-27 01:44:20 +08:00
										 |  |  | 	} | 
					
						
							|  |  |  | ) |