ALIYUN::ARMS::ManagedPrometheus类型用于创建托管(ASK/ECS)Prometheus。
语法
{
"Type": "ALIYUN::ARMS::ManagedPrometheus",
"Properties": {
"VpcId": String,
"SecurityGroupId": String,
"VSwitchId": String,
"ClusterName": String,
"ClusterType": String,
"GrafanaInstanceId": String,
"ClusterId": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
ClusterType | String | 是 | 否 | 集群类型。 | 取值:
|
SecurityGroupId | String | 是 | 否 | 集群所对应的安全组ID。 | 无 |
VpcId | String | 是 | 否 | 集群所对应的VPC ID。 | 无 |
VSwitchId | String | 是 | 否 | 集群所对应的交换机ID。 | 无 |
ClusterId | String | 否 | 否 | 阿里云容器服务Kubernetes版的Kubernetes集群ID。 | 示例值:
|
ClusterName | String | 否 | 否 | 集群名称。 | 当ClusterType取值为 |
GrafanaInstanceId | String | 否 | 否 | 集群绑定的托管版Grafana工作区ID。 | 取值为空或 |
返回值
Fn::GetAtt
VpcId:集群所对应的VPC ID。
ClusterType:集群类型。
示例
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
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"
]
}
}
}
}
文档内容是否对您有帮助?