Installs a Prometheus instance to monitor a serverless Kubernetes (ASK) cluster or an Elastic Compute Service (ECS) instance.
Syntax
{
"Type": "ALIYUN::ARMS::ManagedPrometheus",
"Properties": {
"VpcId": String,
"SecurityGroupId": String,
"VSwitchId": String,
"ClusterName": String,
"ClusterType": String,
"GrafanaInstanceId": String,
"ClusterId": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
ClusterType |
String |
Yes |
No |
The type of the monitoring target. |
Valid values:
|
|
SecurityGroupId |
String |
Yes |
No |
The security group ID of the ASK cluster or ECS instance. |
None. |
|
VpcId |
String |
Yes |
No |
The VPC ID of the ASK cluster or ECS instance. |
None. |
|
VSwitchId |
String |
Yes |
No |
The vSwitch ID of the ASK cluster or ECS instance. |
None. |
|
ClusterId |
String |
No |
No |
The ID of the ACK cluster. |
Example:
|
|
ClusterName |
String |
No |
No |
The name of the ECS instance. |
You must specify this property when ClusterType is set to |
|
GrafanaInstanceId |
String |
No |
No |
The Grafana workspace ID to associate with the ASK cluster or ECS instance. |
If you leave this property empty or set it to |
Return values
Fn::GetAtt
-
VpcId: the VPC ID of the ASK cluster or ECS instance.
-
ClusterType: the type of the monitoring target.
Examples
YAML format
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 format
{
"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"
]
}
}
}
}