Werk #17773: aws_lambda_performance: Handle missing invocation metrics gracefully

Component Checks & agents
Title aws_lambda_performance: Handle missing invocation metrics gracefully
Date May 23, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p3 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p34 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The aws_lambda_performance check now handles cases where the values for the "Invocations" metric are missing. Previously, missing invocation data would cause parsing errors, such as:

TypeError (LambdaCloudwatchMetrics.__init__() missing 1 required positional argument: 'Invocations')

With this change, the check treats missing values as zero, ensuring that the check output remains consistent and does not fail when AWS does not report invocation metrics for unused Lambda functions.

To the list of all Werks