Skip to content

Querying 1-Second Interval Metrics in CloudWatch Over a 5-Minute Period

0

I have configured CloudWatch to collect metrics at 1-second intervals. When I later query this data with a start time of 12:00 and an end time of 12:05, how are the data points displayed? Will I see individual 1-second data points for the entire 5-minute period, or will the data points be aggregated? If aggregated, what kind of statistics will be shown?

asked 2 years ago1.4K views

2 Answers
1

Hi,

Answer to your question depends on the range that you select for display: in the example below, I use "Custom 5m" to allow me to see a maximum number of individual points.

Enter image description here

If you use a coarse granularity (1h, more) , given the high-precision capture that you specific, CW will aggregate the data points on the display window.

Note: to have full control on display, you can export CW metrics and use your preferred tool to present them

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

EXPERT

reviewed 2 years ago

  • To clarify, the screenshot is from the dashboard view, and it selects the overall period for which to project values (which was fixed at 5 minutes in the question). That selection will not affect the granularity or statistics selection for the values within each period.

1

You can choose the granularity for aggregating the values. In the screenshot, the selection on the right sets it for all the metrics in your graph at once, and the one on the left allows you to override it for individual metrics. The "Statistic" dropdown currently set to "Average" additionally chooses the operation to use when aggregating multiple values.

For example, if you have metric values delivered at 1-second intervals and you choose a period of 5 minutes with the "Statistic" option set to "Maximum", the graph will show one data point per 5 minutes with the highest value of the all the 300 per-second data points within that 5-minute interval.

Enter image description here

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years 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.