Alertign: Create feature toggle for recording rules (#86696)

create toggle for recording rules
This commit is contained in:
Alexander Weaver 2024-04-22 12:53:16 -05:00 committed by GitHub
parent 59eb302fc1
commit c32953e52c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 29 additions and 0 deletions

View File

@ -179,4 +179,5 @@ export interface FeatureToggles {
cloudWatchNewLabelParsing?: boolean;
accessActionSets?: boolean;
disableNumericMetricsSortingInExpressions?: boolean;
grafanaManagedRecordingRules?: boolean;
}

View File

@ -1201,6 +1201,15 @@ var (
Owner: grafanaObservabilityMetricsSquad,
RequiresRestart: true,
},
{
Name: "grafanaManagedRecordingRules",
Description: "Enables Grafana-managed recording rules.",
Stage: FeatureStageExperimental,
Owner: grafanaAlertingSquad,
AllowSelfServe: false,
HideFromDocs: true,
HideFromAdminPage: true,
},
}
)

View File

@ -160,3 +160,4 @@ newDashboardWithFiltersAndGroupBy,experimental,@grafana/dashboards-squad,false,f
cloudWatchNewLabelParsing,GA,@grafana/aws-datasources,false,false,false
accessActionSets,experimental,@grafana/identity-access-team,false,false,false
disableNumericMetricsSortingInExpressions,experimental,@grafana/observability-metrics,false,true,false
grafanaManagedRecordingRules,experimental,@grafana/alerting-squad,false,false,false

1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
160 cloudWatchNewLabelParsing GA @grafana/aws-datasources false false false
161 accessActionSets experimental @grafana/identity-access-team false false false
162 disableNumericMetricsSortingInExpressions experimental @grafana/observability-metrics false true false
163 grafanaManagedRecordingRules experimental @grafana/alerting-squad false false false

View File

@ -650,4 +650,8 @@ const (
// FlagDisableNumericMetricsSortingInExpressions
// In server-side expressions, disable the sorting of numeric-kind metrics by their metric name or labels.
FlagDisableNumericMetricsSortingInExpressions = "disableNumericMetricsSortingInExpressions"
// FlagGrafanaManagedRecordingRules
// Enables Grafana-managed recording rules.
FlagGrafanaManagedRecordingRules = "grafanaManagedRecordingRules"
)

View File

@ -2071,6 +2071,20 @@
"codeowner": "@grafana/dataviz-squad",
"frontend": true
}
},
{
"metadata": {
"name": "grafanaManagedRecordingRules",
"resourceVersion": "1713795659477",
"creationTimestamp": "2024-04-22T14:20:59Z"
},
"spec": {
"description": "Enables Grafana-managed recording rules.",
"stage": "experimental",
"codeowner": "@grafana/alerting-squad",
"hideFromAdminPage": true,
"hideFromDocs": true
}
}
]
}