cdk-monitoring-constructs icon indicating copy to clipboard operation
cdk-monitoring-constructs copied to clipboard

[AWS/ECS] Override statistic for the metrics

Open draftbk opened this issue 2 years ago • 1 comments

Feature scope

AWS/ECS

Describe your suggested feature

When using alarms, looks like the Statistic is Average, could we support the override so that we could change this to the Statistic we want?

MonitoringFacade.monitorFargateApplicationLoadBalancer({
            addUnhealthyTaskCountAlarm: {
                ....
            },
            addHealthyTaskCountAlarm: {
                ....
            },
            addCpuUsageAlarm: {
               ....
            },
            addMemoryUsageAlarm: {
               ....
            },
        });

draftbk avatar Sep 21 '22 03:09 draftbk

+1! This would also be a very helpful feature for other resource types besides ECS/Fargate.

koennjb avatar Feb 20 '23 18:02 koennjb