By using AWS re:Post, you agree to the Terms of Use
/Aggregate Metrics (SUM) changes on period change in Cloudwatch./

Aggregate Metrics (SUM) changes on period change in Cloudwatch.


We are having a cloudwatch dashboard containing graphs for different metrics. When we want to see a total number of metrics logged in a particular time period. Lets say the total number of metrics published during the month of May, we go to this graph and select the time range for which we want to see the graph. On hovering over the graph, It shows us Aggregated Sum of the total metrics count over the selected time period.

But when we change the time period range from 1 hour to 5 min or any other range, the aggregate metrics changes. Why does the change in interval period affect the aggregated metrics.

In the image attached in the link, when we change the period of 1 hour to any other period, it changes the aggregated metrics. Link

1 Answers

There are two time periods to configure. The one above the chart is the time period that the chart will cover. The one above the metric, labelled "period" and next to "statistic" is the sample period over which the selected statistic is applied. In your use case this is sum over either 5 minutes or one hour. When hovering over the chart you're shown the time slot and the metric value over that time slot. If you move left or right you'll see a different time slot with it's own corresponding value. So if you change from a 5 minute to a one hour sample period, assuming your data is evenly distributed, you'll see a 12-fold increase in the sum. Changing the chart time period - the one at the top - will just show more of these 5 minute or one hour samples, but won't change the aggregation.

The aggregation period can be set up to 30 days if that helps? There's the option of downloading the data as CSV if you need more control.

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions