Skip to content

This code example illustrates a programmatic way to search through CloudWatch Metrics for Lambda concurrency spikes.

License

Notifications You must be signed in to change notification settings

aws-samples/aws-lambda-concurrency-hunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the MIT License. You may not use this file except in compliance with the License. A copy of the License is located in the "license" file accompanying this file.

This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Lambda Concurrency Hunt

This code example illustrates a programmatic way to search through CloudWatch Metrics for Lambda concurrency spikes, then list the invocations and average duration for all functions during that period in order to troubleshoot unwanted spikes in Lambda Concurrency.

You can read more about this pattern in the blog post: [blog post]

Getting Started

After you fulfill the pre-requisites, just enter

python3 lambda-con-hunt.py

Prerequisites

  • You'll need an AWS account and credentials with access to AWS CloudWatch metrics and Lambda to describe the list of functions
  • You'll need to install Python 3 and the AWS SDK for Python

Installing

  • Install prequisites
  • Configure AWS Python SDK with required credentials

License

This project is licensed under the MIT-0 License - see the LICENSE.md file for details

About

This code example illustrates a programmatic way to search through CloudWatch Metrics for Lambda concurrency spikes.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages