Skip to content

Instantly share code, notes, and snippets.

View cgoering's full-sized avatar

Christian Goering cgoering

View GitHub Profile
@cgoering
cgoering / template.yaml
Created April 26, 2019 18:28
AWS Lambda memory usage metric in CloudFormation
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

Keybase proof

I hereby claim:

  • I am cgoering on github.
  • I am cgoering (https://keybase.io/cgoering) on keybase.
  • I have a public key ASD7e0NI3sff7WP292Coj1bhv7QGRpXbIwL-pgArMvSloAo

To claim this, I am signing this object: