Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View CloudFront metrics in CloudWatch dashboard

Is there a way to display CloudFront metrics inside an existing CloudWatch dashboard ?

I can view CloudFront distributions metrics in the CloudFront console (Total requests, hit ratio ...) but i cant find theses metrics in CloudWatch dashboards.

On the Cloudfront documentation (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cf-metricscollected.html) they talk about the "AWS/CloudFront" namespace, but there is no metric attached to this namespace in CloudWatch.

Also, I suspected there is an option to enable metrics(like the one to have detailed statistics from S3) , but I did not find such option.

I prefere having all metrics inside a single dashboard, it is easier to cross data (EC2 cpu utilization vs database connection vs cloudwatch req/s for example).

like image 292
JayMore Avatar asked Dec 17 '22 23:12

JayMore


1 Answers

Try to look in region us-east-1. You can find them there only because all CloudFront distributions are placed in us-east-1.

From there you can add them to your dashboard ;)

like image 153
tvb Avatar answered Dec 28 '22 12:12

tvb