すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::ARMS::ManagedPrometheus

最終更新日:Jan 16, 2025

ALIYUN::ARMS::ManagedPrometheus は、Prometheus インスタンスをインストールして、サーバーレス Kubernetes(ASK)クラスターまたは Elastic Compute Service(ECS)インスタンスを監視するために使用されます。

構文

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

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

ClusterType

String

はい

いいえ

監視対象のタイプ。

有効な値:

  • ecs: ECS インスタンス

  • ask: Container Service for Kubernetes(ACK)クラスター

SecurityGroupId

String

はい

いいえ

ASK クラスターまたは ECS インスタンスが属するセキュリティグループの ID。

なし。

VpcId

String

はい

いいえ

ASK クラスターまたは ECS インスタンスが属する仮想プライベートクラウド(VPC)の ID。

なし。

VSwitchId

String

はい

いいえ

ASK クラスターまたは ECS インスタンスが接続されている vSwitch の ID。

なし。

ClusterId

String

いいえ

いいえ

ACK クラスターの ID。

例:

cc7a37ee31aea4ed1a059eff8034b****

ClusterName

String

いいえ

いいえ

ECS インスタンスの名前。

ClusterType が ecs に設定されている場合は、このプロパティを指定する必要があります。

GrafanaInstanceId

String

いいえ

いいえ

ASK クラスターまたは ECS インスタンスを関連付ける Grafana ワークスペースの ID。

このプロパティを空のままにするか、free に設定すると、ASK クラスターまたは ECS インスタンスは Grafana の共有バージョンに関連付けられます。

戻り値

Fn::GetAtt

  • VpcId: ASK クラスターまたは ECS インスタンスが属する VPC の ID。

  • ClusterType: 監視対象のタイプ。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  VpcId:
    Type: String
    Description: クラスターの VPC ID。
  SecurityGroupId:
    Type: String
    Description: クラスターのセキュリティグループ ID。
  VSwitchId:
    Type: String
    Description: クラスターの VSwitch ID。
  ClusterType:
    Type: String
    Description: クラスターのタイプ。
    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: クラスターの VPC ID。
    Value:
      Fn::GetAtt:
        - ManagedPrometheus
        - VpcId
  ClusterType:
    Description: クラスターのタイプ。
    Value:
      Fn::GetAtt:
        - ManagedPrometheus
        - ClusterType

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "VpcId": {
      "Type": "String",
      "Description": "クラスターの VPC ID。"  // The vpc ID of the cluster.
    },
    "SecurityGroupId": {
      "Type": "String",
      "Description": "クラスターのセキュリティグループ ID。" // The security group ID of the cluster.
    },
    "VSwitchId": {
      "Type": "String",
      "Description": "クラスターの VSwitch ID。" // 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": "クラスターの VPC ID。", // The vpc ID of the cluster.
      "Value": {
        "Fn::GetAtt": [
          "ManagedPrometheus",
          "VpcId"
        ]
      }
    },
    "ClusterType": {
      "Description": "クラスターのタイプ。", // The type of the cluster.
      "Value": {
        "Fn::GetAtt": [
          "ManagedPrometheus",
          "ClusterType"
        ]
      }
    }
  }
}