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