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 | はい | いいえ | 監視対象のタイプ。 | 有効な値:
|
SecurityGroupId | String | はい | いいえ | ASK クラスターまたは ECS インスタンスが属するセキュリティグループの ID。 | なし。 |
VpcId | String | はい | いいえ | ASK クラスターまたは ECS インスタンスが属する仮想プライベートクラウド(VPC)の ID。 | なし。 |
VSwitchId | String | はい | いいえ | ASK クラスターまたは ECS インスタンスが接続されている vSwitch の ID。 | なし。 |
ClusterId | String | いいえ | いいえ | ACK クラスターの ID。 | 例:
|
ClusterName | String | いいえ | いいえ | ECS インスタンスの名前。 | ClusterType が |
GrafanaInstanceId | String | いいえ | いいえ | ASK クラスターまたは ECS インスタンスを関連付ける Grafana ワークスペースの ID。 | このプロパティを空のままにするか、 |
戻り値
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
- ClusterTypeJSON 形式
{
"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"
]
}
}
}
}