-
Notifications
You must be signed in to change notification settings - Fork 35
/
monitoring-agent-process.yml
82 lines (82 loc) · 1.98 KB
/
monitoring-agent-process.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建ECS实例并部署CMS监控代理进程,监控指定进程名与用户,VPC、安全组配置可自定义。
en: Create an ECS instance and deploy the CMS monitoring agent process to monitor
specified process names and users, with customizable VPC and security group configurations.
Parameters:
ProcessName:
Type: String
ProcessUser:
Type: String
Default: root
VpcId:
Type: String
Description: VPC Id.
VSwitchId:
Type: String
Description: VSW Id.
SecurityGroupId:
Type: String
Description: Security Group Id.
ImageId:
Type: String
Label: ECS Image Id
Default: centos_7
InstanceType:
Type: String
Label: ECS Instance Type
Default: ecs.c5.large
SystemDiskCategory:
Type: String
Description: Category of system disk. Default is cloud_efficiency. support cloud|cloud_efficiency|cloud_ssd|cloud_essd|ephemeral_ssd.Old
instances will not be changed.
Default: cloud_essd
AllowedValues:
- cloud
- cloud_efficiency
- cloud_ssd
- cloud_essd
- ephemeral_ssd
LoginPassword:
Type: String
Description: ECS Login Password
Default: Admin123
MinLength: 8
MaxLength: 41
NoEcho: true
Resources:
ECS:
Type: ALIYUN::ECS::Instance
Properties:
VpcId:
Ref: VpcId
VSwitchId:
Ref: VSwitchId
SecurityGroupId:
Ref: SecurityGroupId
ImageId:
Ref: ImageId
IoOptimized: optimized
AllocatePublicIP: true
InstanceType:
Ref: InstanceType
SystemDiskCategory:
Ref: SystemDiskCategory
Password:
Ref: LoginPassword
MonitoringAgentProcess:
Type: ALIYUN::CMS::MonitoringAgentProcess
Properties:
InstanceId:
Ref: ECS
ProcessName:
Ref: ProcessName
ProcessUser:
Ref: ProcessUser
DependsOn: ECS
Outputs:
Id:
Value:
Fn::GetAtt:
- MonitoringAgentProcess
- Id