Created
April 26, 2019 18:28
-
-
Save cgoering/4de674e3e3ca8d6255ea708997cca3b0 to your computer and use it in GitHub Desktop.
AWS Lambda memory usage metric in CloudFormation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CustomMetric: | |
Type: AWS::Logs::MetricFilter | |
Properties: | |
LogGroupName: !Sub /aws/lambda/${AWS::StackName} | |
FilterPattern: '[str="REPORT", ..., str="Max", str="Memory", str="Used:", MaxMemoryUsed, str="MB"]' | |
MetricTransformations: | |
- MetricNamespace: Organization/Project/Service | |
MetricName: MaxMemoryUsed | |
MetricValue: $MaxMemoryUsed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Source: https://forums.aws.amazon.com/thread.jspa?threadID=226674