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

tm90 and tm99 support for Lambda latency monitors

Open stihahi opened this issue 1 year ago • 1 comments

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

stihahi avatar Nov 21 '23 17:11 stihahi

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>)

skkrail-amzn avatar May 22 '24 17:05 skkrail-amzn