Files
floci/src
Matheus OliveiraandPriamo Germosen 2ad35bba1d fix(applicationautoscaling): target-tracking alarms watch the real metric, not the policy type name (#6902)
* fix(applicationautoscaling): target-tracking alarms watch the real metric, not the policy type name

CustomizedMetricSpecification passes Namespace, MetricName, Dimensions,
Statistic and Unit onto the AlarmHigh and AlarmLow alarms as given, and
the ECSServiceAverageCPUUtilization, ECSServiceAverageMemoryUtilization
and ALBRequestCountPerTarget predefined types map onto the documented
AWS/ECS and AWS/ApplicationELB metric identities, so the alarms see data
published the way AWS (or the caller) publishes it.

Closes #6853

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

* fix(applicationautoscaling): read ALB target-tracking alarms through Sum

RequestCountPerTarget data points already carry the per-minute average
across the target group, and CloudWatch names Sum as the only valid
statistic for the metric, so an Average alarm compares the target
against a second average and misses scale-outs (two samples of 600
read 600 instead of 1200 against a target of 1000). The statistic now
travels with each predefined metric mapping, keeping Average for the
ECS utilisation gauges.

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>

---------

Signed-off-by: Matheus Oliveira <matheus.6148@gmail.com>
Co-authored-by: Priamo Germosen <6233424+pgermosen@users.noreply.github.com>
2026-10-31 05:30:43 -04:00
..