ALIYUN::ARMS::ManagedPrometheus digunakan untuk menginstal instance Prometheus guna memantau kluster Kubernetes tanpa server (ASK) atau Instance ECS (Elastic Compute Service).
Sintaksis
{
"Type": "ALIYUN::ARMS::ManagedPrometheus",
"Properties": {
"VpcId": String,
"SecurityGroupId": String,
"VSwitchId": String,
"ClusterName": String,
"ClusterType": String,
"GrafanaInstanceId": String,
"ClusterId": String
}
}Properti
Properti | Tipe | Diperlukan | Dapat Diedit | Deskripsi | Kendala |
ClusterType | String | Ya | Tidak | Tipe objek pemantauan. | Nilai yang valid:
|
SecurityGroupId | String | Ya | Tidak | ID grup keamanan tempat kluster ASK atau Instance ECS berada. | Tidak ada. |
VpcId | String | Ya | Tidak | ID virtual private cloud (VPC) tempat kluster ASK atau Instance ECS berada. | Tidak ada. |
VSwitchId | String | Ya | Tidak | ID vSwitch tempat kluster ASK atau Instance ECS terhubung. | Tidak ada. |
ClusterId | String | Tidak | Tidak | ID kluster ACK. | Contoh:
|
ClusterName | String | Tidak | Tidak | Nama Instance ECS. | Anda harus menentukan properti ini ketika ClusterType diatur ke |
GrafanaInstanceId | String | Tidak | Tidak | ID ruang kerja Grafana yang ingin Anda asosiasikan dengan kluster ASK atau Instance ECS. | Jika Anda mengosongkan properti ini atau mengatur properti ini ke |
Nilai kembali
Fn::GetAtt
VpcId: ID VPC tempat kluster ASK atau Instance ECS berada.
ClusterType: Tipe objek pemantauan.
Contoh
Format YAML
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
VpcId:
Type: String
Description: ID vpc dari kluster.
SecurityGroupId:
Type: String
Description: ID grup keamanan dari kluster.
VSwitchId:
Type: String
Description: ID vswith dari kluster.
ClusterType:
Type: String
Description: Tipe kluster.
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: ID vpc dari kluster.
Value:
Fn::GetAtt:
- ManagedPrometheus
- VpcId
ClusterType:
Description: Tipe kluster.
Value:
Fn::GetAtt:
- ManagedPrometheus
- ClusterTypeFormat JSON
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"VpcId": {
"Type": "String",
"Description": "ID vpc dari kluster."
},
"SecurityGroupId": {
"Type": "String",
"Description": "ID grup keamanan dari kluster."
},
"VSwitchId": {
"Type": "String",
"Description": "ID vswith dari kluster."
},
"ClusterType": {
"Type": "String",
"Description": "Tipe kluster.",
"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": "ID vpc dari kluster.",
"Value": {
"Fn::GetAtt": [
"ManagedPrometheus",
"VpcId"
]
}
},
"ClusterType": {
"Description": "Tipe kluster.",
"Value": {
"Fn::GetAtt": [
"ManagedPrometheus",
"ClusterType"
]
}
}
}
}