Choose a signal that means workload health
How metric selection, metric math, evaluation windows, missing-data handling, and composite alarms determine whether workload health alerts are reliable. · advanced
A reliable alarm starts with the metric identity and statistic, not the threshold. A metric is identified by its namespace, name, and complete dimension set. Selecting one instance does not select the fleet, and CloudWatch does not automatically aggregate custom metrics across dimensions. Match the dimensions to the failure boundary: one unhealthy instance can disappear inside a fleet average.
For request health, distinguish counts from percentages. For matching request populations and periods, calculate 100 * errors / requests, using Sum for both counters. Across instances, divide total errors by total requests; averaging instance error percentages gives quiet instances the same weight as busy ones. Utilization helps explain failures, but request success and latency measure customer impact more directly.
Metric math also determines when evidence exists. Division by zero drops the resulting point; an idle period is not automatically a zero-percent error period. Arithmetic can treat missing inputs as zero, so a missing error counter alongside a present request counter can look healthy. Establish explicit zero-publishing behavior and monitor telemetry continuity separately rather than expecting a ratio to detect every publishing failure.