Alerting: Add feature toggle for Alertmanager import config API (#106424)

This commit is contained in:
Alexander Akhmetov
2025-06-10 10:32:50 +02:00
committed by GitHub
parent 1aaf8adee4
commit f14ed750f5
5 changed files with 34 additions and 0 deletions
@@ -1024,4 +1024,9 @@ export interface FeatureToggles {
* @default false
*/
alertEnrichment?: boolean;
/**
* Enables the API to import Alertmanager configuration
* @default false
*/
alertingImportAlertmanagerAPI?: boolean;
}
+9
View File
@@ -1763,6 +1763,15 @@ var (
HideFromDocs: true,
Expression: "false",
},
{
Name: "alertingImportAlertmanagerAPI",
Description: "Enables the API to import Alertmanager configuration",
Stage: FeatureStageExperimental,
Owner: grafanaAlertingSquad,
HideFromAdminPage: true,
HideFromDocs: true,
Expression: "false",
},
}
)
+1
View File
@@ -230,3 +230,4 @@ extensionsReadOnlyProxy,experimental,@grafana/plugins-platform-backend,false,fal
restoreDashboards,experimental,@grafana/grafana-frontend-platform,false,false,false
skipTokenRotationIfRecent,privatePreview,@grafana/identity-access-team,false,false,false
alertEnrichment,experimental,@grafana/alerting-squad,false,false,false
alertingImportAlertmanagerAPI,experimental,@grafana/alerting-squad,false,false,false
1 Name Stage Owner requiresDevMode RequiresRestart FrontendOnly
230 restoreDashboards experimental @grafana/grafana-frontend-platform false false false
231 skipTokenRotationIfRecent privatePreview @grafana/identity-access-team false false false
232 alertEnrichment experimental @grafana/alerting-squad false false false
233 alertingImportAlertmanagerAPI experimental @grafana/alerting-squad false false false
+4
View File
@@ -930,4 +930,8 @@ const (
// FlagAlertEnrichment
// Enable configuration of alert enrichments in Grafana Cloud.
FlagAlertEnrichment = "alertEnrichment"
// FlagAlertingImportAlertmanagerAPI
// Enables the API to import Alertmanager configuration
FlagAlertingImportAlertmanagerAPI = "alertingImportAlertmanagerAPI"
)
+15
View File
@@ -172,6 +172,21 @@
"hideFromDocs": true
}
},
{
"metadata": {
"name": "alertingImportAlertmanagerAPI",
"resourceVersion": "1749365901136",
"creationTimestamp": "2025-06-08T06:58:21Z"
},
"spec": {
"description": "Enables the API to import Alertmanager configuration",
"stage": "experimental",
"codeowner": "@grafana/alerting-squad",
"hideFromAdminPage": true,
"hideFromDocs": true,
"expression": "false"
}
},
{
"metadata": {
"name": "alertingImportYAMLUI",