Todos os produtos
Search
Central de documentação

Resource Orchestration Service:ALIYUN::ARMS::ManagedPrometheus

Última atualização: Jun 27, 2026

Instala uma instância do Prometheus para monitorar um cluster Kubernetes serverless (ASK) ou uma instância do Elastic Compute Service (ECS).

Sintaxe

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

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ClusterType

String

Sim

Não

Tipo do alvo de monitoramento.

Valores válidos:

  • ecs: instância do ECS

  • ask: cluster do Container Service for Kubernetes (ACK)

SecurityGroupId

String

Sim

Não

ID do grupo de segurança do cluster ASK ou da instância do ECS.

Nenhuma.

VpcId

String

Sim

Não

ID da VPC do cluster ASK ou da instância do ECS.

Nenhuma.

VSwitchId

String

Sim

Não

ID do vSwitch do cluster ASK ou da instância do ECS.

Nenhuma.

ClusterId

String

Não

Não

ID do cluster ACK.

Exemplo:

cc7a37ee31aea4ed1a059eff8034b****.

ClusterName

String

Não

Não

Nome da instância do ECS.

Especifique esta propriedade quando ClusterType estiver definido como ecs.

GrafanaInstanceId

String

Não

Não

ID do workspace do Grafana a associar ao cluster ASK ou à instância do ECS.

Se esta propriedade estiver vazia ou definida como free, o cluster ASK ou a instância do ECS será associado à versão compartilhada do Grafana.

Valores de retorno

Fn::GetAtt

  • VpcId: ID da VPC do cluster ASK ou da instância do ECS.

  • ClusterType: tipo do alvo de monitoramento.

Exemplos

Formato YAML

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    Description: The vpc ID of the cluster.
  SecurityGroupId:
    Type: String
    Description: The security group ID of the cluster.
  VSwitchId:
    Type: String
    Description: The vswith ID of the cluster.
  ClusterType:
    Type: String
    Description: The type of the cluster.
    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: The vpc ID of the cluster.
    Value:
      Fn::GetAtt:
        - ManagedPrometheus
        - VpcId
  ClusterType:
    Description: The type of the cluster.
    Value:
      Fn::GetAtt:
        - ManagedPrometheus
        - ClusterType

Formato JSON

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "Description": "The vpc ID of the cluster."
    },
    "SecurityGroupId": {
      "Type": "String",
      "Description": "The security group ID of the cluster."
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "The vswith ID of the cluster."
    },
    "ClusterType": {
      "Type": "String",
      "Description": "The type of the cluster.",
      "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": "The vpc ID of the cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ManagedPrometheus",
          "VpcId"
        ]
      }
    },
    "ClusterType": {
      "Description": "The type of the cluster.",
      "Value": {
        "Fn::GetAtt": [
          "ManagedPrometheus",
          "ClusterType"
        ]
      }
    }
  }
}