All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::ARMS::ManagedPrometheus

Last Updated:Jun 26, 2025

ALIYUN::ARMS::ManagedPrometheus digunakan untuk menginstal instance Prometheus guna memantau kluster Kubernetes tanpa server (ASK) atau Instance ECS (Elastic Compute Service).

Sintaksis

{
  "Type": "ALIYUN::ARMS::ManagedPrometheus",
  "Properties": {
    "VpcId": String,
    "SecurityGroupId": String,
    "VSwitchId": String,
    "ClusterName": String,
    "ClusterType": String,
    "GrafanaInstanceId": String,
    "ClusterId": String
  }
}

Properti

Properti

Tipe

Diperlukan

Dapat Diedit

Deskripsi

Kendala

ClusterType

String

Ya

Tidak

Tipe objek pemantauan.

Nilai yang valid:

  • ecs: Instance ECS

  • ask: Kluster Container Service for Kubernetes (ACK)

SecurityGroupId

String

Ya

Tidak

ID grup keamanan tempat kluster ASK atau Instance ECS berada.

Tidak ada.

VpcId

String

Ya

Tidak

ID virtual private cloud (VPC) tempat kluster ASK atau Instance ECS berada.

Tidak ada.

VSwitchId

String

Ya

Tidak

ID vSwitch tempat kluster ASK atau Instance ECS terhubung.

Tidak ada.

ClusterId

String

Tidak

Tidak

ID kluster ACK.

Contoh:

cc7a37ee31aea4ed1a059eff8034b****.

ClusterName

String

Tidak

Tidak

Nama Instance ECS.

Anda harus menentukan properti ini ketika ClusterType diatur ke ecs.

GrafanaInstanceId

String

Tidak

Tidak

ID ruang kerja Grafana yang ingin Anda asosiasikan dengan kluster ASK atau Instance ECS.

Jika Anda mengosongkan properti ini atau mengatur properti ini ke free, kluster ASK atau Instance ECS akan diasosiasikan dengan versi dibagi dari Grafana.

Nilai kembali

Fn::GetAtt

  • VpcId: ID VPC tempat kluster ASK atau Instance ECS berada.

  • ClusterType: Tipe objek pemantauan.

Contoh

Format YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    Description: ID vpc dari kluster.
  SecurityGroupId:
    Type: String
    Description: ID grup keamanan dari kluster.
  VSwitchId:
    Type: String
    Description: ID vswith dari kluster.
  ClusterType:
    Type: String
    Description: Tipe kluster.
    AllowedValues:
      - ecs
    Default: ecs
Resources:
  ManagedPrometheus:
    Type: ALIYUN::ARMS::ManagedPrometheus
    Properties:
      VpcId:
        Ref: VpcId
      SecurityGroupId:
        Ref: SecurityGroupId
      VSwitchId:
        Ref: VSwitchId
      ClusterType:
        Ref: ClusterType
Outputs:
  VpcId:
    Description: ID vpc dari kluster.
    Value:
      Fn::GetAtt:
        - ManagedPrometheus
        - VpcId
  ClusterType:
    Description: Tipe kluster.
    Value:
      Fn::GetAtt:
        - ManagedPrometheus
        - ClusterType

Format JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "Description": "ID vpc dari kluster."
    },
    "SecurityGroupId": {
      "Type": "String",
      "Description": "ID grup keamanan dari kluster."
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "ID vswith dari kluster."
    },
    "ClusterType": {
      "Type": "String",
      "Description": "Tipe kluster.",
      "AllowedValues": [
        "ecs"
      ],
      "Default": "ecs"
    }
  },
  "Resources": {
    "ManagedPrometheus": {
      "Type": "ALIYUN::ARMS::ManagedPrometheus",
      "Properties": {
        "VpcId": {
          "Ref": "VpcId"
        },
        "SecurityGroupId": {
          "Ref": "SecurityGroupId"
        },
        "VSwitchId": {
          "Ref": "VSwitchId"
        },
        "ClusterType": {
          "Ref": "ClusterType"
        }
      }
    }
  },
  "Outputs": {
    "VpcId": {
      "Description": "ID vpc dari kluster.",
      "Value": {
        "Fn::GetAtt": [
          "ManagedPrometheus",
          "VpcId"
        ]
      }
    },
    "ClusterType": {
      "Description": "Tipe kluster.",
      "Value": {
        "Fn::GetAtt": [
          "ManagedPrometheus",
          "ClusterType"
        ]
      }
    }
  }
}