-
Notifications
You must be signed in to change notification settings - Fork 0
/
cw_agent_config.json
38 lines (38 loc) · 978 Bytes
/
cw_agent_config.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
{
"agent": {
"metrics_collection_interval": 10
},
"metrics": {
"metrics_collected": {
"disk": {
"resources": ["/", "/tmp"],
"measurement": ["disk_used_percent"],
"ignore_file_system_types": ["sysfs", "devtmpfs"]
},
"mem": {
"measurement": ["mem_available_percent"]
}
},
"aggregation_dimensions": [["InstanceId", "InstanceType"], ["InstanceId"]]
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/var/log/syslog",
"log_group_name": "/aws/ec2/syslog",
"log_stream_name": "{instance_id}-syslog",
"timestamp_format": "%b %d %H:%M:%S"
},
{
"file_path": "/var/log/auth.log",
"log_group_name": "/aws/ec2/auth",
"log_stream_name": "{instance_id}-auth",
"timestamp_format": "%b %d %H:%M:%S"
}
]
}
}
}
}