-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapache.json
46 lines (46 loc) · 1.04 KB
/
apache.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
{
"agent": {
"metrics_collection_interval": 60,
"run_as_user": "root"
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/var/log/www/error/*",
"log_group_name": "/cw-monitoring-framework/apache/error",
"log_stream_name": "{instance_id}"
},
{
"file_path": "/var/log/www/access/*",
"log_group_name": "/cw-monitoring-framework/apache/access",
"log_stream_name": "{instance_id}"
}
]
}
}
},
"metrics": {
"append_dimensions": {
"AutoScalingGroupName": "${aws:AutoScalingGroupName}",
"InstanceId": "${aws:InstanceId}"
},
"metrics_collected": {
"procstat": [
{
"exe": "httpd",
"measurement": [
"cpu_usage",
"memory_rss",
"memory_vms",
"read_bytes",
"write_bytes",
"read_count",
"write_count"
]
}
]
}
}
}