-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudwatch-agent-config.json
65 lines (65 loc) · 1.91 KB
/
cloudwatch-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
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
{
"agent": {
"metrics_collection_interval": 10,
"logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log"
},
"metrics": {
"namespace": "Compute/Tidybase",
"metrics_collected": {
"cpu": {
"resources": ["*"],
"measurement": [
{
"name": "usage_active",
"rename": "CPUActive",
"unit": "Percent"
}
],
"totalcpu": true,
"metrics_collection_interval": 10,
"append_dimensions": {
"ImageId": "${aws:ImageId}",
"InstanceId": "${aws:InstanceId}",
"InstanceType": "${aws:InstanceType}",
"AutoScalingGroupName": "${aws:AutoScalingGroupName}"
}
}
},
"append_dimensions": {
"ImageId": "${aws:ImageId}",
"InstanceId": "${aws:InstanceId}",
"InstanceType": "${aws:InstanceType}",
"AutoScalingGroupName": "${aws:AutoScalingGroupName}"
},
"aggregation_dimensions": [["AutoScalingGroupName"]],
"force_flush_interval": 30
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log",
"log_group_name": "/tidybase",
"log_stream_name": "tidybase-cloudwatch-agent-{instance_id}.log",
"timezone": "UTC"
},
{
"file_path": "/tidybase/logs/pocketbase.log",
"log_group_name": "/tidybase",
"log_stream_name": "pocketbase-{instance_id}.log",
"timezone": "UTC"
},
{
"file_path": "/var/log/cloud-init-output.log",
"log_group_name": "/tidybase",
"log_stream_name": "tidybase-init-{instance_id}.log",
"timezone": "UTC"
}
]
}
},
"log_stream_name": "tidybase_log_stream",
"force_flush_interval": 15
}
}