Custom metrics for Amazon API Gateway

Amazon API Gateway → Amazon CloudWatch

Generates custom metrics for all custom domains in a given region

This pattern creates a Lambda function that scans the custom domain names and their API mappings in a region. The function then creates a custom metrics namespace in CloudWatch metrics for 200, 4xx and 5xx errors. The metric data points get populated for the requests that comes in to the APIs/CDN post creation of the custom namespace.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/cdn-dash-sam

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Additional resources

Created by:

Abha Tripathi

Abha Tripathi

Cloud Engineer @ AWS

Follow on LinkedIn

Sushir V R

Sushir V R

Cloud Engineer @ AWS

Follow on LinkedIn