@@ -14,7 +14,11 @@ services.x-monitoring
1414 services :
1515 serviceA :
1616 x-monitoring :
17- CWAgentCollectEmf : bool|SidecarConfig
17+ CWAgentCollectEmf : true
18+ CollectEmf :
19+ CloudwatchAgent :
20+ UseLatest : true
21+ InterpolateWithDigest : false
1822
1923 Shorthands for monitoring features.
2024
@@ -35,21 +39,24 @@ See the `AWS CloudWatch agent & EMF Configuration for details`_ of what's config
3539boolean value
3640-------------
3741
38- When set to true|false, enables the sidecar using the `latest CloudWatch agent image from AWS ECR Public `_.
42+ When set to true, enables the sidecar using the `latest CloudWatch agent image from AWS ECR Public `_.
43+ When set to false, disables EMF collection entirely.
3944
4045SidecarConfig
4146--------------
4247
4348This configuration allows you to define more options to control the behaviour of the used sidecar image.
4449You must explicitly set either ``UseLatest `` or `OverrideImage `_
4550
46- .. code-block ::
51+ .. code-block :: yaml
4752
48- x-monitoring:
49- CWAgentCollectEmf:
50- InterpolateWithDigest: bool
51- OverrideImage: str
52- UseLatest: bool
53+ services :
54+ serviceA :
55+ x-monitoring :
56+ CWAgentCollectEmf :
57+ InterpolateWithDigest : true
58+ OverrideImage : " public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247357.0b252275"
59+ UseLatest : false
5360
5461 .. hint ::
5562
@@ -58,12 +65,14 @@ You must explicitly set either ``UseLatest`` or `OverrideImage`_
5865OverrideImage
5966^^^^^^^^^^^^^^
6067
61- .. code-block ::
68+ .. code-block :: yaml
6269
63- x-monitoring:
64- CWAgentCollectEmf:
65- InterpolateWithDigest: false
66- OverrideImage: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247357.0b252275
70+ services :
71+ serviceA :
72+ x-monitoring :
73+ CWAgentCollectEmf :
74+ InterpolateWithDigest : false
75+ OverrideImage : " public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.247357.0b252275"
6776
6877 .. note ::
6978
@@ -80,12 +89,14 @@ the digest.
8089 This setting is recommended if you want to ensure that the image used is going to be consistently the same throughout
8190 the lifecycle of your Task Definition revision.
8291
83- .. code-block ::
92+ .. code-block :: yaml
8493
85- x-monitoring:
86- CWAgentCollectEmf:
87- InterpolateWithDigest: true
88- UseLatest: true
94+ services :
95+ serviceA :
96+ x-monitoring :
97+ CWAgentCollectEmf :
98+ InterpolateWithDigest : true
99+ UseLatest : true
89100
90101 .. _AWS CloudWatch agent & EMF Configuration for details : https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Generation_CloudWatch_Agent.html
91102.. _latest CloudWatch agent image from AWS ECR Public : https://gallery.ecr.aws/cloudwatch-agent/cloudwatch-agent
0 commit comments