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
+15 -16
View File
@@ -514,6 +514,9 @@
"notificationSettings": {
"$ref": "#/definitions/AlertRuleNotificationSettings"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
"queriedDatasourceUIDs": {
"items": {
"type": "string"
@@ -579,7 +582,8 @@
"AlertmanagerUserConfig": {
"properties": {
"alertmanager_config": {
"$ref": "#/definitions/Config"
"description": "Configuration for Alertmanager in YAML format.\nin: body",
"type": "string"
},
"template_files": {
"additionalProperties": {
@@ -1434,20 +1438,6 @@
"title": "Frames is a slice of Frame pointers.",
"type": "array"
},
"GettableAlertmanagerUserConfig": {
"properties": {
"alertmanager_config": {
"type": "string"
},
"template_files": {
"additionalProperties": {
"type": "string"
},
"type": "object"
}
},
"type": "object"
},
"GettableAlertmanagers": {
"properties": {
"data": {
@@ -3719,6 +3709,7 @@
"type": "object"
},
"Route": {
"description": "A Route is a node that contains definitions of how to handle alerts. This is modified\nfrom the upstream alertmanager in that it adds the ObjectMatchers property.",
"properties": {
"active_time_intervals": {
"items": {
@@ -3760,6 +3751,12 @@
},
"type": "array"
},
"object_matchers": {
"$ref": "#/definitions/ObjectMatchers"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
"receiver": {
"type": "string"
},
@@ -3773,7 +3770,6 @@
"type": "array"
}
},
"title": "A Route is a node that contains definitions of how to handle alerts.",
"type": "object"
},
"RouteExport": {
@@ -3869,6 +3865,9 @@
"notificationSettings": {
"$ref": "#/definitions/AlertRuleNotificationSettings"
},
"provenance": {
"$ref": "#/definitions/Provenance"
},
"query": {
"type": "string"
},