Alerting: Add support for retrieving imported Prometheus Alertmanager configurations (#106864)

This commit is contained in:
Alexander Akhmetov
2025-06-18 10:49:40 +02:00
committed by GitHub
parent 4bfd7b6d7c
commit 8c6df8b449
9 changed files with 550 additions and 151 deletions
+10 -17
View File
@@ -1381,9 +1381,9 @@
],
"responses": {
"200": {
"description": "GettableAlertmanagerUserConfig",
"description": "AlertmanagerUserConfig",
"schema": {
"$ref": "#/definitions/GettableAlertmanagerUserConfig"
"$ref": "#/definitions/AlertmanagerUserConfig"
}
},
"403": {
@@ -4812,6 +4812,9 @@
"notificationSettings": {
"$ref": "#/definitions/AlertRuleNotificationSettings"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
"queriedDatasourceUIDs": {
"type": "array",
"items": {
@@ -4868,7 +4871,8 @@
"type": "object",
"properties": {
"alertmanager_config": {
"$ref": "#/definitions/Config"
"description": "Configuration for Alertmanager in YAML format.\nin: body",
"type": "string"
},
"template_files": {
"type": "object",
@@ -5723,20 +5727,6 @@
"$ref": "#/definitions/Frame"
}
},
"GettableAlertmanagerUserConfig": {
"type": "object",
"properties": {
"alertmanager_config": {
"type": "string"
},
"template_files": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
},
"GettableAlertmanagers": {
"type": "object",
"properties": {
@@ -8172,6 +8162,9 @@
"notificationSettings": {
"$ref": "#/definitions/AlertRuleNotificationSettings"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
"query": {
"type": "string"
},