Container Service için bir Prometheus örneğine veya ECS için bir Prometheus örneğine entegre edilen bir dışa aktarıcının yapılandırmalarını değiştirir.
This API has been deprecated with no replacement. While temporary access is maintained, no further updates or bug fixes will be provided. To ensure continued functionality, plan your migration and contact your account manager for support.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
arms:UpdatePrometheusIntegration |
none |
*Tüm Kaynaklar.
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
Bölge kimliği. |
cn-hangzhou |
| ClusterId |
string |
Yes |
Prometheus örneğinin kimliği. Yalnızca Container Service için Prometheus örneği veya ECS için Prometheus örneği desteklenir. |
cc7a37ee31aea4ed1a059eff8034b**** |
| Param |
string |
Yes |
Dışa aktarıcının yapılandırmaları. Değer bir JSON dizesidir. |
{ "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 |
No |
Dışa aktarıcı kimliği. |
2893 |
| IntegrationType |
string |
Yes |
Entegrasyon türü. |
kafka、mysql、redis、snmp、emr、nubela、tidb等。 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Yanıt şeması. |
||
| RequestId |
string |
İstek kimliği. |
2DB771C3-D1BB-5363-8A5F-ADB2AF2948DB |
| Data |
object |
Döndürülen yapı. |
|
| InstanceId |
integer |
Dışa aktarıcı kimliği. |
2866 |
| InstanceName |
string |
Dışa aktarıcı adı. |
inet |
| Message |
string |
Döndürülen ileti. |
查询成功 |
| Code |
integer |
Durum kodu veya hata kodu. |
200 |
Examples
Success response
JSON format
{
"RequestId": "2DB771C3-D1BB-5363-8A5F-ADB2AF2948DB",
"Data": {
"InstanceId": 2866,
"InstanceName": "inet"
},
"Message": "查询成功",
"Code": 200
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.