擷取Prometheus執行個體(僅支援aliyun-cs、ecs兩種類型的執行個體)指定整合中心Exporter執行個體。
目前該API介面已標記為棄用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地區 ID。 |
cn-hangzhou |
| ClusterId |
string |
是 |
Prometheus 執行個體 ID。僅支援 aliyun-cs 和 ecs 兩種類型的執行個體。 |
cc7a37ee31aea4ed1a059eff8034b**** |
| IntegrationType |
string |
是 |
整合類型:kafka、mysql、redis、snmp、emr、nubela、tidb 等。 |
tidb |
| InstanceId |
integer |
是 |
Prometheus 執行個體整合中心 Exporter 執行個體 ID。 |
28** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
9BEF2832-9D95-5E3E-9B10-74887C****** |
| Data |
object |
返回結構體。 |
|
| ClusterId |
string |
Prometheus 執行個體 ID。 |
cc7a37ee31aea4ed1a059eff8034b**** |
| InstanceId |
integer |
Prometheus 執行個體的整合 Exporter 執行個體 ID。 |
28** |
| ShowDescribe |
boolean |
是否展示描述。 |
true |
| NeedUpgrade |
boolean |
是否需要升級。 |
True |
| InstanceName |
string |
Prometheus 整合的 Exporter 執行個體名。 |
lpd-skyeye |
| IntegrationType |
string |
整合類型:kafka、mysql、redis、snmp、emr、nubela、tidb 等。 |
tidb |
| ExporterType |
string |
整合 Exporter 類型。 |
tidb-exporter |
| Version |
string |
版本資訊。 |
1.0.0 |
| Target |
string |
監控目標地址。 |
127.0.XX.XX:3422 |
| CanDelete |
boolean |
是否能刪除。 |
true |
| CanEditor |
boolean |
是否可以編輯。 |
true |
| Status |
string |
Exporter 狀態 |
installed |
| Describe |
string |
Exporter 描述。 |
"{}" |
| ShowLog |
string |
是否展示 Exporter 日誌。 |
true |
| Namespace |
string |
命名空間。 |
arms-prom |
| ContainerName |
string |
容器名稱。 |
kafka-exporter-1 |
| Param |
string |
Exporter 配置參數 JSON 串。 |
{ "port": "5554", "name": "kafka-test12", "kafka_instance": "kafka-test", "__label_value": "kafka-test", "scrape_interval": 33, "metrics_path": "/metrics", "__label_key": "kafka-test" } |
| Code |
integer |
狀態代碼。200 為成功,其他狀態代碼為異常。 |
200 |
| Message |
string |
返回資訊。 |
message |
樣本
正常返回樣本
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。