cdk-monitoring-constructs
cdk-monitoring-constructs copied to clipboard
tm90 and tm99 support for Lambda latency monitors
Feature scope
Lambda
Describe your suggested feature
Currently latency alarms supported for LambdaFunctionMonitoring is limited to 3 metrics, P50, P90 and P99.
Our team wants to monitor Lambda latency with TM90 and TM99.
Ref: https://github.com/cdklabs/cdk-monitoring-constructs/blob/main/lib/monitoring/aws-lambda/LambdaFunctionMonitoring.ts#L56-L58
It would be helpful if these addLatencyXAlarm props were replaced with a single addLatencyAlarms prop of a type like
Record<string, LatencyThreshold & { statistic: LatencyType }>[]
so we could specify arbitrary latency statistics.
(addLatencyXAlarm is type Record<string, LatencyThreshold>)