FeatureFlags: set defaults in the registry rather than the ini file (#58106)
This commit is contained in:
@@ -1253,18 +1253,6 @@ license_path =
|
|||||||
# enable = feature1,feature2
|
# enable = feature1,feature2
|
||||||
enable =
|
enable =
|
||||||
|
|
||||||
# The new prometheus visual query builder
|
|
||||||
promQueryBuilder = true
|
|
||||||
|
|
||||||
# Experimental Explore to Dashboard workflow
|
|
||||||
explore2Dashboard = true
|
|
||||||
|
|
||||||
# Command Palette
|
|
||||||
commandPalette = true
|
|
||||||
|
|
||||||
# Use dynamic labels in CloudWatch datasource
|
|
||||||
cloudWatchDynamicLabels = true
|
|
||||||
|
|
||||||
# feature1 = true
|
# feature1 = true
|
||||||
# feature2 = false
|
# feature2 = false
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ export interface FeatureToggles {
|
|||||||
[name: string]: boolean | undefined; // support any string value
|
[name: string]: boolean | undefined; // support any string value
|
||||||
|
|
||||||
alertingBigTransactions?: boolean;
|
alertingBigTransactions?: boolean;
|
||||||
|
promQueryBuilder?: boolean;
|
||||||
trimDefaults?: boolean;
|
trimDefaults?: boolean;
|
||||||
disableEnvelopeEncryption?: boolean;
|
disableEnvelopeEncryption?: boolean;
|
||||||
database_metrics?: boolean;
|
database_metrics?: boolean;
|
||||||
|
|||||||
@@ -14,6 +14,13 @@ var (
|
|||||||
Description: "Use big transactions for alerting database writes",
|
Description: "Use big transactions for alerting database writes",
|
||||||
State: FeatureStateAlpha,
|
State: FeatureStateAlpha,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "promQueryBuilder",
|
||||||
|
Description: "Show prometheus query builder",
|
||||||
|
State: FeatureStateStable,
|
||||||
|
Expression: "true", // on by default
|
||||||
|
FrontendOnly: true,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
Name: "trimDefaults",
|
Name: "trimDefaults",
|
||||||
Description: "Use cue schema to remove values that will be applied automatically",
|
Description: "Use cue schema to remove values that will be applied automatically",
|
||||||
@@ -162,7 +169,8 @@ var (
|
|||||||
{
|
{
|
||||||
Name: "explore2Dashboard",
|
Name: "explore2Dashboard",
|
||||||
Description: "Experimental Explore to Dashboard workflow",
|
Description: "Experimental Explore to Dashboard workflow",
|
||||||
State: FeatureStateBeta,
|
State: FeatureStateStable,
|
||||||
|
Expression: "true", // enabled by default
|
||||||
FrontendOnly: true,
|
FrontendOnly: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -178,9 +186,11 @@ var (
|
|||||||
FrontendOnly: true,
|
FrontendOnly: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "commandPalette",
|
Name: "commandPalette",
|
||||||
Description: "Enable command palette",
|
Description: "Enable command palette",
|
||||||
State: FeatureStateAlpha,
|
State: FeatureStateStable,
|
||||||
|
Expression: "true", // enabled by default
|
||||||
|
FrontendOnly: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "correlations",
|
Name: "correlations",
|
||||||
@@ -191,6 +201,7 @@ var (
|
|||||||
Name: "cloudWatchDynamicLabels",
|
Name: "cloudWatchDynamicLabels",
|
||||||
Description: "Use dynamic labels instead of alias patterns in CloudWatch datasource",
|
Description: "Use dynamic labels instead of alias patterns in CloudWatch datasource",
|
||||||
State: FeatureStateStable,
|
State: FeatureStateStable,
|
||||||
|
Expression: "true", // enabled by default
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "datasourceQueryMultiStatus",
|
Name: "datasourceQueryMultiStatus",
|
||||||
|
|||||||
@@ -11,6 +11,10 @@ const (
|
|||||||
// Use big transactions for alerting database writes
|
// Use big transactions for alerting database writes
|
||||||
FlagAlertingBigTransactions = "alertingBigTransactions"
|
FlagAlertingBigTransactions = "alertingBigTransactions"
|
||||||
|
|
||||||
|
// FlagPromQueryBuilder
|
||||||
|
// Show prometheus query builder
|
||||||
|
FlagPromQueryBuilder = "promQueryBuilder"
|
||||||
|
|
||||||
// FlagTrimDefaults
|
// FlagTrimDefaults
|
||||||
// Use cue schema to remove values that will be applied automatically
|
// Use cue schema to remove values that will be applied automatically
|
||||||
FlagTrimDefaults = "trimDefaults"
|
FlagTrimDefaults = "trimDefaults"
|
||||||
|
|||||||
Reference in New Issue
Block a user