-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathamazon-cloudwatch-agent.json
61 lines (61 loc) · 1.78 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
{
"agent": {
"metrics_collection_interval": 10,
"logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log",
"credentials": {
"role_arn": "arn:aws:iam::YOURACCOUNT:role/YOURROLEARN"
}
},
"metrics":{
"metrics_collected":{
"statsd":{
"service_address":":8125",
"metrics_collection_interval":60,
"metrics_aggregation_interval":60
},
"procstat": [
{
"pattern": "-port 1935",
"measurement": [
"cpu_usage",
"memory_rss"
]
},
{
"pattern": "-port 7777",
"measurement": [
"cpu_usage",
"memory_rss"
]
}
]
}
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log",
"log_group_name": "AmazonCloudWatchAgentLogs",
"log_stream_name": "AmazonCloudWatchAgentLogs-{instance_id}",
"timezone": "UTC"
},
{
"file_path": "/local/game/logs/myserver1935.log",
"log_group_name": "GameServerLogs",
"log_stream_name": "GameServerLogs-{ip_address}-1935",
"timezone": "Local"
},
{
"file_path": "/local/game/logs/myserver7777.log",
"log_group_name": "GameServerLogs",
"log_stream_name": "GameServerLogs-{ip_address}-7777",
"timezone": "Local"
}
]
}
},
"force_flush_interval" : 15
}
}