First step, let’s create an anomaly detector model on a specific CloudWatch metric (EC2 Average CPUUtilization for an instance):
aws cloudwatch put-anomaly-detector — namespace “AWS/EC2” — metric-name “CPUUtilization” — dimensions Name=InstanceId,Value=i-0345489963224c1a3 — stat “Average”
We can list our Cloudwatch anomaly detectors for the CPUUtilization of all our EC2 instances with
aws cloudwatch describe-anomaly-detectors — metric-name “CPUUtilization” — namespace “AWS/EC2”
In the AWS Console, you will be able to see the different models you have created: