File tree Expand file tree Collapse file tree 1 file changed +38
-41
lines changed
NorthwindCRUD/.ebextensions Expand file tree Collapse file tree 1 file changed +38
-41
lines changed Original file line number Diff line number Diff line change 11# https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-cw.html
22
3- files:
4- "/opt/aws/amazon-cloudwatch-agent/bin/config.json":
3+ files:
4+ "/opt/aws/amazon-cloudwatch-agent/bin/config.json":
55 mode: "000600"
66 owner: root
77 group: root
@@ -13,46 +13,43 @@ files:
1313 "run_as_user":"cwagent"
1414 },
1515 "metrics":{
16- "namespace":"CWAgent/AppBuilderData",
17- "append_dimensions":{
18- "InstanceId":"${aws:InstanceId}",
19- "InstanceType":"${aws:InstanceType}",
20- "AutoScalingGroupName":"${aws:AutoScalingGroupName}"
21- },
22- "aggregation_dimensions":[
23- [
24- "AutoScalingGroupName", "InstanceId"
16+ "namespace":"CWAgent/AppBuilderData",
17+ "append_dimensions":{
18+ "InstanceId":"${aws:InstanceId}",
19+ "InstanceType":"${aws:InstanceType}",
20+ "AutoScalingGroupName":"${aws:AutoScalingGroupName}"
21+ },
22+ "aggregation_dimensions":[
23+ [ "AutoScalingGroupName", "InstanceId" ],
24+ [ ]
25+ ],
26+ "metrics_collected":{
27+ "cpu":{
28+ "resources":[
29+ "*"
2530 ],
26- [
27-
31+ "measurement":[
32+ "time_idle",
33+ "time_iowait",
34+ "time_system",
35+ "time_user",
36+ "usage_steal",
37+ "usage_system",
38+ "usage_user",
39+ "usage_iowait"
2840 ]
29- ],
30- "metrics_collected":{
31- "cpu":{
32- "resources":[
33- "*"
34- ],
35- "measurement":[
36- "time_idle",
37- "time_iowait",
38- "time_system",
39- "time_user",
40- "usage_steal",
41- "usage_system",
42- "usage_user",
43- "usage_iowait"
44- ]
45- },
46- "mem":{
47- "measurement":[
48- "used_percent",
49- "total",
50- "available_percent"
51- ]
52- }
53- }
41+ },
42+ "mem":{
43+ "measurement":[
44+ "used_percent",
45+ "total",
46+ "available_percent"
47+ ]
48+ }
49+ }
5450 }
55- }
51+ }
52+
5653container_commands:
57- start_cloudwatch_agent:
58- command: /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a append-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json
54+ start_cloudwatch_agent:
55+ command: /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a append-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json
You can’t perform that action at this time.
0 commit comments