In October we reviewed the size of the database behind our order system ahead of the peak season. The proposal was to move it down one instance size, and the evidence was a CloudWatch graph of CPUUtilization for last November. The busiest hour of Black Friday 2025 had peaked at fifty eight percent.
One of our database engineers asked to see the same hour with the Maximum statistic instead of Average. It said ninety nine.
CloudWatch keeps metric data at full resolution only for a while. Data published every minute stays available at one minute resolution for fifteen days. After that it is aggregated to five minute points, kept for sixty three days, and after sixty three days to one hour points, kept for four hundred and fifty five days. Last November was about eleven months old, so all that was left of the day was one point per hour.
Each of those points still carries the minimum, maximum, sum and sample count of the minutes inside it. The graph shows Average unless you ask for something else, and the average of an hour in which the database spent eighteen minutes saturated and the rest at forty or fifty percent is a comfortable fifty eight. Our incident log for that day had a ticket for slow checkout between twenty to twelve and two minutes to twelve. The graph had folded those eighteen minutes into an hour.
We kept the current size and had a long talk about how close we had come.
Three things changed. When a peak day ends, a scheduled job exports its metrics at one minute resolution from CloudWatch to S3 while they still exist, for the database, the load balancers and the queues, and a small notebook can redraw any of them later at full detail. Our capacity panels show Maximum and a high percentile next to Average, and any panel showing a period older than fifteen days says in its title what resolution it is drawing. Capacity proposals now have to state the resolution of the data they cite.
The proposal was not careless. Average is the default, the graph was real, and the number on it was accurate for the hour it described.
Resolution is part of a measurement. A peak that lasts minutes cannot be found in data that only remembers hours, and in CloudWatch the minutes expire on a schedule whether or not anybody has looked at them yet.
– Sergey Shinder
