Tüm Ürünler
Search
Belge Merkezi

:CreatePrometheusInstance

Son Güncelleme:Oct 14, 2026

Bir Prometheus örneği oluşturur.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

arms:CreatePrometheusInstance

create

*Prometheus.

acs:arms:{#regionId}:{#accountId}:prometheus/*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

Gerçek bölge kimliği.

cn-shanghai

ClusterType

string

Yes

Küme türü. Geçerli değerler:

  • remote-write: Uzaktan Yazma için Prometheus.

  • ecs (artık desteklenmiyor): ECS için Prometheus.

  • global-view: GlobalView için Prometheus.

  • aliyun-cs (artık desteklenmiyor): Konteyner Hizmeti için Prometheus.

  • cloud-product (artık desteklenmiyor): Bulut hizmetleri için Prometheus.

  • cloud-monitor (artık desteklenmiyor): Kurumsal Bulut İzleyici için Prometheus.

  • flink (artık desteklenmiyor): Flink için Prometheus.

remote-write

VpcId

string

No

Sanal özel bulutun (VPC) kimliği. Bu parametre, ClusterType ecs veya yönetilen bir ACK kümesi için aliyun-cs olduğunda gereklidir.

vpc-rpn**********

VSwitchId

string

No

vSwitch kimliği. Bu parametre, ClusterType ecs veya yönetilen bir ACK kümesi için aliyun-cs olduğunda gereklidir.

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

SecurityGroupId

string

No

VPC'deki güvenlik grubunun kimliği. Bu parametre, ClusterType ecs veya yönetilen bir ACK kümesi için aliyun-cs olduğunda gereklidir.

sg-bp1********

ClusterId

string

No

Konteyner Hizmeti kümesinin kimliği. Bu parametre, ClusterType aliyun-cs olduğunda gereklidir.

cc7a37ee31aea4ed1a059eff8034b****

ClusterName

string

No

Yeni kümenin adı. Bu parametre, ClusterType remote-write, ecs veya global-view olduğunda gereklidir. ecs örnekleri için adlandırma kuralı "name-vpc-id" şeklindedir ve "name" kısmının uzunluğu 24 karakteri aşamaz, örneğin "mytest1-vpc-xxxxxxxxxxx".

clusterNameOfTest

SubClustersJson

string

No

GlobalView örneği için alt örneklerin JSON dizesi.

The list of clusters to be aggregated. This parameter is required when ClusterType is global-view. Example: [ { "headers":{ }, "regionId":"cn-hangzhou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c39a1048921e04f***********", "sourceName":"arms-luyao-test", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-beijing", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c6b6485496d5b40***********", "sourceName":"agent-321-test", "dataSource":"", "userId":"1672753***********" }, { "headers":{ }, "regionId":"cn-zhangjiakou", "sourceType":"AlibabaPrometheus", "extras":{ }, "clusterId":"c261a4f3200c446***********", "sourceName":"zaifeng-cardinality-01", "dataSource":"", "userId":"1672753***********" } ]

AllSubClustersSuccess

boolean

No

GlobalView örneği oluşturulmadan önce tüm alt örneklerin doğrulamayı geçip geçmesi gerektiğini belirtir. Varsayılan değer: false. false olarak ayarlanırsa kısmi başarıya izin verilir.

true

GrafanaInstanceId

string

No

Bağlı Grafana çalışma alanının kimliği. Paylaşılan Grafana sürümünü kullanırken bu parametreyi "free" olarak ayarlayın.

grafana-bp1*****

ResourceGroupId

string

No

Kaynak grubunun kimliği.

rg-acfmxyexli2****

Tags

array<object>

No

Özel etiketler.

[ { "labelName":"labelValue" }, { "testName":"clusterA" } ]

object

No

Etiketlerin listesi.

Key

string

No

Etiketin anahtarı.

TestKey

Value

string

No

Etiketin değeri.

TestValue

Duration

integer

No

Gün cinsinden veri depolama süresi.

90

ArchiveDuration

integer

No

Depolama süresi dolduktan sonra verilerin otomatik olarak arşivleneceği gün sayısı. Geçerli değerler: 60, 90, 180 ve 365. 0 değeri verilerin arşivlenmediğini gösterir.

90

PaymentType

string

No

Faturalandırma yöntemi. Geçerli değerler:

  • POSTPAY: Bildirilen metriklerin sayısına göre kullandıkça öde.

  • POSTPAY_GB: Yazılan metriklerin hacmine göre kullandıkça öde.

  • Empty: Varsayılan faturalandırma yöntemi yapılandırmanızı kullanır. Varsayılan bir değer yapılandırmadıysanız, sistem bildirilen metriklerin sayısına göre kullandıkça öde faturalandırma yöntemini kullanır.

POSTPAY

Response elements

Element

Type

Description

Example

object

Code

integer

API durum kodu. Geçerli değerler:

  • 2XX: Başarılı.

  • 3XX: Yönlendirme.

  • 4XX: İstemci hatası.

  • 5XX: Sunucu hatası.

200

Data

string

Örnek oluşturulduktan sonra döndürülen örnek kimliği. Bir aliyun-cs örneği için Prometheus örnek kimliği, Konteyner Hizmeti küme kimliğidir. Bir ecs örneği için Prometheus örnek kimliği, VPC kimliğidir.

qduukd****

Message

string

Döndürülen mesaj.

message

RequestId

string

İstek kimliği.

70675725-8F11-4817-8106-CFE0AD71****

Examples

Success response

JSON format

{
  "Code": 200,
  "Data": "qduukd****",
  "Message": "message",
  "RequestId": "70675725-8F11-4817-8106-CFE0AD71****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.