获取Prometheus实例(仅支持aliyun-cs、ecs两种类型的实例)指定集成中心Exporter实例。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
RegionId | string | 是 | 地域 ID。 | cn-hangzhou |
ClusterId | string | 是 | Prometheus 实例 ID。仅支持 aliyun-cs 和 ecs 两种类型的实例。 | cc7a37ee31aea4ed1a059eff8034b**** |
IntegrationType | string | 是 | 集成类型:kafka、mysql、redis、snmp、emr、nubela、tidb 等。 | tidb |
InstanceId | long | 是 | Prometheus 实例集成中心 Exporter 实例 ID。 | 28** |
返回参数
示例
正常返回示例
JSON
格式
{
"RequestId": "9BEF2832-9D95-5E3E-9B10-74887C******",
"Data": {
"ClusterId": "cc7a37ee31aea4ed1a059eff8034b****",
"InstanceId": 0,
"ShowDescribe": true,
"NeedUpgrade": true,
"InstanceName": "lpd-skyeye",
"IntegrationType": "tidb",
"ExporterType": "tidb-exporter",
"Version": "1.0.0",
"Target": "127.0.XX.XX:3422",
"CanDelete": true,
"CanEditor": true,
"Status": "installed",
"Describe": "\"{}\"",
"ShowLog": "true",
"Namespace": "arms-prom",
"ContainerName": "kafka-exporter-1",
"Param": "{\n \"port\": \"5554\",\n \"name\": \"kafka-test12\",\n \"kafka_instance\": \"kafka-test\",\n \"__label_value\": \"kafka-test\",\n \"scrape_interval\": 33,\n \"metrics_path\": \"/metrics\",\n \"__label_key\": \"kafka-test\"\n}"
},
"Code": 200,
"Message": "message"
}
错误码
HTTP status code | 错误码 | 错误信息 |
---|---|---|
400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||||
---|---|---|---|---|---|---|
2023-04-10 | OpenAPI 错误码发生变更 | 看变更集 | ||||
| ||||||
2023-03-23 | OpenAPI 错误码发生变更 | 看变更集 | ||||
|