全部產品
Search
文件中心

Application Real-Time Monitoring Service:AddPrometheusIntegration - 增加Prometheus執行個體的整合中心Exporter執行個體

更新時間:Apr 11, 2026

增加Prometheus執行個體的整合中心Exporter執行個體(僅支援aliyun-cs、ecs兩種類型的執行個體)。

說明

目前該API介面已標記為棄用。

調試

您可以在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等

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"}

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

Id of the request

3703B98C-335E-5BA7-972E-F90E9E768A85

Data

object

返回結構體。

InstanceId

integer

Prometheus 執行個體的整合 Exporter 執行個體 id。

2829

InstanceName

string

prometheus 整合的 Exporter 執行個體名。

hw-cloud02

Code

integer

介面狀態或 pop 錯誤碼。

200

Message

string

返回結果的提示資訊。

message

樣本

正常返回樣本

JSON格式

{
  "RequestId": "3703B98C-335E-5BA7-972E-F90E9E768A85",
  "Data": {
    "InstanceId": 2829,
    "InstanceName": "hw-cloud02"
  },
  "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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情