Alerting: Fix path for cortex-style Prometheus namespaces conversion endpoint (#103655)
This commit is contained in:
@@ -1102,36 +1102,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/convert/api/prom/config/v1/rules": {
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"convert_prometheus"
|
||||
],
|
||||
"summary": "Converts the submitted rule groups into Grafana-Managed Rules.",
|
||||
"operationId": "RouteConvertPrometheusCortexPostRuleGroups",
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "ConvertPrometheusResponse",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ConvertPrometheusResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "ForbiddenError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ForbiddenError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/convert/api/prom/rules": {
|
||||
"get": {
|
||||
"produces": [
|
||||
@@ -1162,6 +1132,34 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"post": {
|
||||
"consumes": [
|
||||
"application/json",
|
||||
"application/yaml"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"convert_prometheus"
|
||||
],
|
||||
"summary": "Converts the submitted rule groups into Grafana-Managed Rules.",
|
||||
"operationId": "RouteConvertPrometheusCortexPostRuleGroups",
|
||||
"responses": {
|
||||
"202": {
|
||||
"description": "ConvertPrometheusResponse",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ConvertPrometheusResponse"
|
||||
}
|
||||
},
|
||||
"403": {
|
||||
"description": "ForbiddenError",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ForbiddenError"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/convert/api/prom/rules/{NamespaceTitle}": {
|
||||
@@ -5588,6 +5586,12 @@
|
||||
"$ref": "#/definitions/GettableGrafanaReceiver"
|
||||
}
|
||||
},
|
||||
"jira_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/JiraConfig"
|
||||
}
|
||||
},
|
||||
"msteams_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -5949,6 +5953,9 @@
|
||||
"http_config": {
|
||||
"$ref": "#/definitions/HTTPClientConfig"
|
||||
},
|
||||
"jira_api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
"opsgenie_api_key": {
|
||||
"$ref": "#/definitions/Secret"
|
||||
},
|
||||
@@ -5997,6 +6004,9 @@
|
||||
"smtp_smarthost": {
|
||||
"$ref": "#/definitions/HostPort"
|
||||
},
|
||||
"smtp_tls_config": {
|
||||
"$ref": "#/definitions/TLSConfig"
|
||||
},
|
||||
"telegram_api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
@@ -6186,6 +6196,57 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"JiraConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"api_url": {
|
||||
"$ref": "#/definitions/URL"
|
||||
},
|
||||
"custom_fields": {
|
||||
"type": "object",
|
||||
"additionalProperties": {}
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"http_config": {
|
||||
"$ref": "#/definitions/HTTPClientConfig"
|
||||
},
|
||||
"issue_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"labels": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"priority": {
|
||||
"type": "string"
|
||||
},
|
||||
"project": {
|
||||
"type": "string"
|
||||
},
|
||||
"reopen_duration": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"reopen_transition": {
|
||||
"type": "string"
|
||||
},
|
||||
"resolve_transition": {
|
||||
"type": "string"
|
||||
},
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"summary": {
|
||||
"type": "string"
|
||||
},
|
||||
"wont_fix_resolution": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Json": {
|
||||
"type": "object"
|
||||
},
|
||||
@@ -6794,6 +6855,12 @@
|
||||
"$ref": "#/definitions/PostableGrafanaReceiver"
|
||||
}
|
||||
},
|
||||
"jira_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/JiraConfig"
|
||||
}
|
||||
},
|
||||
"msteams_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -7537,6 +7604,12 @@
|
||||
"$ref": "#/definitions/EmailConfig"
|
||||
}
|
||||
},
|
||||
"jira_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/JiraConfig"
|
||||
}
|
||||
},
|
||||
"msteams_configs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
@@ -8793,6 +8866,9 @@
|
||||
"send_resolved": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"timeout": {
|
||||
"$ref": "#/definitions/Duration"
|
||||
},
|
||||
"url": {
|
||||
"$ref": "#/definitions/SecretURL"
|
||||
},
|
||||
@@ -9043,6 +9119,7 @@
|
||||
}
|
||||
},
|
||||
"gettableAlerts": {
|
||||
"description": "GettableAlerts gettable alerts",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
|
||||
Reference in New Issue
Block a user