全部產品
Search
文件中心

Application Real-Time Monitoring Service:InstallManagedPrometheus - 建立託管Prometheus

更新時間:Apr 11, 2026

建立託管(ASK/ECS)Prometheus。

說明

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

介面說明

只適用於 ASK 和 ECS 執行個體,且叢集未安裝過阿里雲 Prometheus,託管 Prometheus 將被安裝在雲產品側,使用者叢集中不可見。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

地區 ID。

cn-hangzhou

ClusterId

string

阿里雲Container Service Kubernetes 版的 Kubernetes 叢集的 ID。

cc7a37ee31aea4ed1a059eff8034b****

ResourceGroupId

string

Prometheus 執行個體的資源群組 ID。

rg-acfmxyexli2****

ClusterName

string

叢集名稱。ClusterType 為 ecs 時,必填。

prd-ecs

ClusterType

string

叢集類型。

枚舉值:

  • flink :

    flink

  • ecs :

    ecs

  • one :

    one

  • ask :

    ask

  • pro :

    容器監控 pro

ask

VpcId

string

叢集所對應的 VPC。

vpc-xxxxxx

VSwitchId

string

叢集所對應的交換器。

vsw-bp1*********

SecurityGroupId

string

叢集所對應的安全性群組。

sg-bp1********

GrafanaInstanceId

string

叢集綁定的託管版 Grafana 工作區 Id。為空白或"free"時,綁定到共用版 Grafana。

grafana-bp1*****

KubeConfig

string

當前參數不支援使用。

-

VcExtraInfo

string

flink VC 叢集擴充資訊。

-

返回參數

名稱

類型

描述

樣本值

object

響應結果對象。

RequestId

string

請求 ID。

String 2A0CEDF1-06FE-44AC-8E21-21A5BE65****

Data

string

響應內容。通常返回安裝狀態。

success

Success

boolean

是否安裝成功。

true

Message

string

安裝失敗時響應描述。

vpcId is blank

Code

integer

狀態代碼。200 為成功,其他狀態代碼為異常。

200

樣本

正常返回樣本

JSON格式

{
  "RequestId": "String\t2A0CEDF1-06FE-44AC-8E21-21A5BE65****",
  "Data": "success",
  "Success": true,
  "Message": "vpcId is blank",
  "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.

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

變更歷史

更多資訊,參考變更詳情