Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Lambda using the new Resource Tagging API. Signific…
…ant performance improvements using tinydb. Added new tools for Lambda optimization.
- Loading branch information
1 parent
631af7b
commit 06cecc9
Showing
17 changed files
with
816 additions
and
166 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
AWSTemplateFormatVersion: '2010-09-09' | ||
Description: AWS CloudFormation Template for creating CloudWatch Logs Metric Filters that keep track of memory utilization (and in the future, possibly other data that can be extracted from Lambda output in CW Logs) | ||
|
||
Parameters: | ||
LambdaFunctionName: | ||
Default: "" | ||
Description: Name of the Lambda function to monitor | ||
Type: String | ||
|
||
|
||
Resources: | ||
LambdaMemoryUsed: | ||
Properties: | ||
FilterPattern: '[reportLabel=REPORT, requestIdLabel="RequestId:",..., maxMemoryUsedValue, maxMemoryUsedMbLabel]' | ||
LogGroupName: | ||
Fn::Join: | ||
- '' | ||
- - '/aws/lambda/' | ||
- Ref: LambdaFunctionName | ||
MetricTransformations: | ||
- MetricName: | ||
Fn::Join: | ||
- '' | ||
- - 'MemoryUsed-' | ||
- Ref: LambdaFunctionName | ||
MetricNamespace: ConcurrencyLabs/Lambda/ | ||
MetricValue: $maxMemoryUsedValue | ||
Type: AWS::Logs::MetricFilter | ||
|
||
LambdaMemorySize: | ||
Properties: | ||
FilterPattern: '[reportLabel=REPORT, requestIdLabel="RequestId:",..., memorySizeValue, memorySizeValueMbLabel, maxLabel, memoryLabel, usedLabel, maxMemoryUsedValue, maxMemoryUsedMbLabel]' | ||
LogGroupName: | ||
Fn::Join: | ||
- '' | ||
- - '/aws/lambda/' | ||
- Ref: LambdaFunctionName | ||
MetricTransformations: | ||
- MetricName: | ||
Fn::Join: | ||
- '' | ||
- - 'MemorySize-' | ||
- Ref: LambdaFunctionName | ||
MetricNamespace: ConcurrencyLabs/Lambda/ | ||
MetricValue: $memorySizeValue | ||
Type: AWS::Logs::MetricFilter | ||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.