Hi folks!
I configured CWAgent on few windows EC2 instances in oder to gather Disk and RAM usage metrics. I set up this around 11.2023 (November 2023) and it worked fine. I created a dashboard in CloudWatch.
Recently I've noticed that these graphs are empty on my dashboard but graphs with these metrics in Monitoring section into "AWS Console > EC2 > Monitoring" section are working. I started to investigate the problem and realized that data is present only for 2 last months.
I read that by default CloudWatch keeps metrics for 15 months. I didn't find a way how to troubleshoot this strange issue.
Thank everybody for a help and tips!
Thanks for sharing this!
I've found the article in AWS docs - https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_GetMetricStatistics.html. And it says that: "Data points that are initially published with a shorter period are aggregated together for long-term storage. For example, if you collect data using a period of 1 minute, the data remains available for 15 days with 1-minute resolution. After 15 days, this data is still available, but is aggregated and retrievable only with a resolution of 5 minutes. After 63 days, the data is further aggregated and is available with a resolution of 1 hour."
Should I make additional config for the CWAgent to enable this additional aggregation?
The additional aggregation you are talking about is going to aggregate metric data and is going to send it to Cloudwatch as a single metric. If you want to have this functionality:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch-Agent-common-scenarios.html#CloudWatch-Agent-aggregating-metrics
Else CW is going to automatically aggregate data to higher granularities.