1- < p > This rule raises and issue when AWS CloudWatch < code > put_metric_data</ code > namespace begins with < code > AWS/</ code > </ p >
1+ < p > This rule raises an issue when AWS CloudWatch < code > put_metric_data</ code > namespace begins with < code > AWS/</ code > </ p >
22< h2 > Why is this an issue?</ h2 >
33< p > AWS CloudWatch has reserved namespaces that begin with 'AWS/' for its own internal services and metrics. These namespaces are used by AWS to
44publish official service metrics such as EC2 instance metrics, Lambda function metrics, S3 bucket metrics, and others. When you attempt to publish
@@ -7,8 +7,8 @@ <h2>Why is this an issue?</h2>
77< h3 > What is the potential impact?</ h3 >
88< p > Using AWS service namespaces can lead to metric publishing failures, data corruption, or unexpected behavior in CloudWatch dashboards. It may also
99cause confusion between your custom metrics and official AWS service metrics, making monitoring and troubleshooting more difficult. Additionally, AWS
10- may reject such metric publications or they may interfere with existing service metrics.</ p >
11- < h2 > How to fix it in boto3 </ h2 >
10+ may reject such metric publications, or they may interfere with existing service metrics.</ p >
11+ < h2 > How to fix it in Boto3 </ h2 >
1212< p > Use a custom namespace that does not begin with 'AWS/' when publishing metrics with CloudWatch. Choose a meaningful namespace that reflects your
1313application or service name, such as 'MyApp/', 'CustomService/', or your organization name.</ p >
1414< h3 > Code examples</ h3 >
@@ -87,9 +87,9 @@ <h4>Compliant solution</h4>
8787< h2 > Resources</ h2 >
8888< h3 > Documentation</ h3 >
8989< ul >
90- < li > < a href ="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html "> AWS CloudWatch PutMetricData API
91- Reference</ a > </ li >
92- < li > < a href ="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace "> CloudWatch Concepts -
93- Namespaces</ a > </ li >
90+ < li > AWS Documentation - < a href ="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutMetricData.html "> AWS CloudWatch
91+ PutMetricData API Reference</ a > </ li >
92+ < li > AWS Documentation - < a href ="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace "> CloudWatch
93+ Concepts - Namespaces</ a > </ li >
9494</ ul >
9595
0 commit comments