Topic lessonTopic: Monitoring and recovering event processing
Read CloudWatch metrics with matching periods and statistics
Compare graphs only after checking the metric identity, aggregation period, and statistic. An image-processing example shows how the same measurements can yield different values.
Identify a time series, distinguish Period from Statistic, and choose a denominator when comparing intervals with different request volumes.
A metric records observations over time. This lesson uses fictional custom-metric data.
Select the same time series and aggregation before comparing
A CloudWatch metric is identified by its namespace, name, and dimensions. Period sets the time interval used for aggregation. Statistic determines how the observations in that interval are summarized.
- Observation → Time seriesChoose the metric identity
- Time series → AggregationSet the period and statistic
- Aggregation → ComparisonCheck the units before comparing
- Observation
- Investigate failed image conversions
- Time series
- Choose the environment and job
- Aggregation
- Use the same one-minute Sum
- Comparison
- Check units and denominator
Compare the average and maximum of five observations
| Observation | Statistic | What it shows |
|---|---|---|
| 200, 200, 200, 200, and 1,200 ms | Average = 400 ms | Arithmetic mean of five observations. |
| The same five durations | Maximum = 1,200 ms | Slowest observed invocation in the interval. |
| The application publishes a value of 1 only on a failure | Sum = total of the reported failure values | Interpret an empty interval using the publication conditions. |
The 400 ms average and 1,200 ms maximum summarize the same requests. Use the maximum to find evidence of a slow request, then check timestamps and request IDs in the logs to identify it.
Check whether different aggregations are comparable
Align the units. Compare counts over equal intervals, or convert to a rate if that answers the question. Raw counts from one-minute and five-minute periods can differ even when traffic is unchanged.
Weight aggregate means by sample count. If interval A had 10 requests averaging 100 ms and interval B had 90 averaging 300 ms, the combined mean is (10×100 + 90×300) ÷ 100 = 280 ms. Each individual request contributes equally.
Spot mistakes in metric comparisons
Choose an option to see the result and explanation.
Check, then explain in your own words
- Record the namespace, metric name, and dimensions.
- Choose the same period and statistic.
- Include the total request count when comparing failure counts.
Check your understanding: The Sum of failures doubled since yesterday. What else do you compare?
Compare the observed workload, interval length, and total number of requests.
If these differ, the count alone cannot explain the change in failure rate.
Sources and conditions checked
The official references used in this lesson are collected here with their scope, conditions and corresponding sections. Independent expert review and live AWS comparison have not been performed.
- Metrics conceptsChecked:
Scope and conditionsMetric identity, statistics, periods, and aggregation.
Used in this lessonSelect the same time series and aggregation before comparing Compare the average and maximum of five observations Check whether different aggregations are comparable