更改Prometheus執行個體(僅支援aliyun-cs、ecs兩種類型的執行個體)整合中心Exporter配置。
目前該API介面已標記為棄用。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地區 ID。 |
cn-hangzhou |
| ClusterId |
string |
是 |
Prometheus 執行個體 ID。僅支援 aliyun-cs、ecs 兩種類型的執行個體。 |
cc7a37ee31aea4ed1a059eff8034b**** |
| 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" } |
| InstanceId |
integer |
否 |
整合中心 Exporter 執行個體 ID。 |
2893 |
| IntegrationType |
string |
是 |
整合類型。 |
kafka、mysql、redis、snmp、emr、nubela、tidb等。 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
2DB771C3-D1BB-5363-8A5F-ADB2AF2948DB |
| Data |
object |
返回結構體。 |
|
| InstanceId |
integer |
Prometheus 執行個體的整合 Exporter 執行個體 ID。 |
2866 |
| InstanceName |
string |
prometheus 整合的執行個體名。 |
inet |
| Message |
string |
返回結果的提示資訊。 |
查詢成功 |
| Code |
integer |
介面狀態或 pop 錯誤碼。 |
200 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "2DB771C3-D1BB-5363-8A5F-ADB2AF2948DB",
"Data": {
"InstanceId": 2866,
"InstanceName": "inet"
},
"Message": "查詢成功",
"Code": 200
}
錯誤碼
|
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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。