-
Notifications
You must be signed in to change notification settings - Fork 21
/
linux_cw_infra.json
130 lines (130 loc) · 3.58 KB
/
linux_cw_infra.json
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"agent": {
"metrics_collection_interval": 60,
"run_as_user": "root"
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log",
"log_group_name": "linux/aws/cwagent",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/messages",
"log_group_name": "linux/var/log/messages",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/auth.log",
"log_group_name": "linux/var/log/auth",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/secure",
"log_group_name": "linux/var/log/secure",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/faillog",
"log_group_name": "linux/var/log/fail",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/cron",
"log_group_name": "linux/var/log/cron",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/boot.log",
"log_group_name": "linux/var/log/boot",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/dmesg",
"log_group_name": "linux/var/log/dmesg",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/syslog",
"log_group_name": "linux/var/log/sys",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/cloud-init.log",
"log_group_name": "linux/var/log/cloud-init",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/cloud-init-output.log",
"log_group_name": "linux/var/log/cloud-init-output",
"log_stream_name": "{instance_id}"
}
]
}
}
},
"metrics": {
"append_dimensions": {
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
"InstanceId": "${aws:InstanceId}"
},
"metrics_collected": {
"procstat": [
{
"exe": "amazon-cloudwatch-agent",
"measurement": [
"cpu_usage",
"memory_rss",
"memory_vms",
"read_bytes",
"write_bytes",
"read_count",
"write_count"
]
}
],
"cpu": {
"measurement": [
"cpu_usage_idle",
"cpu_usage_iowait",
"cpu_usage_user",
"cpu_usage_system"
],
"metrics_collection_interval": 60,
"totalcpu": true
},
"disk": {
"measurement": ["used_percent", "inodes_free"],
"drop_device": true,
"metrics_collection_interval": 60,
"resources": ["*"]
},
"diskio": {
"measurement": [
"io_time",
"write_bytes",
"read_bytes",
"writes",
"reads"
],
"metrics_collection_interval": 60,
"resources": ["*"]
},
"mem": {
"measurement": ["mem_used_percent"],
"metrics_collection_interval": 60
},
"netstat": {
"measurement": ["tcp_established", "tcp_time_wait"],
"metrics_collection_interval": 60
},
"swap": {
"measurement": ["swap_used_percent"],
"metrics_collection_interval": 60
}
}
}
}