-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathamazon-cloudwatch-agent.json
62 lines (62 loc) · 1.84 KB
/
amazon-cloudwatch-agent.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
{
"agent": {
"metrics_collection_interval": 60,
"run_as_user": "root"
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/opt/minecraft/server/logs/latest.log",
"log_group_name": "/minecraft/serverlog/{instance_id}",
"retention_in_days": 3,
"filters": [
{
"type": "include",
"expression": "Server thread/INFO"
}
]
}
]
}
}
},
"metrics": {
"append_dimensions": {
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
"InstanceId": "${aws:InstanceId}"
},
"metrics_collected": {
"collectd": {
"metrics_aggregation_interval": 60
},
"cpu": {
"measurement": [
"cpu_usage_active"
],
"resources": [
"*"
],
"metrics_collection_interval": 60
},
"net": {
"measurement": [
"net_bytes_sent"
],
"metrics_collection_interval": 60
},
"mem": {
"measurement": [
"mem_used_percent"
],
"metrics_collection_interval": 60
},
"statsd": {
"metrics_aggregation_interval": 60,
"metrics_collection_interval": 10,
"service_address": ":8125"
}
}
}
}