Minimal project to reproduce Lambda Powertools issue 1239, where metrics aren't being created when 9 dimensions are used.
Make sure you have the following tools installed first.
- SAM CLI - Install the SAM CLI
- Python 3 installed
- Docker - Install Docker community edition
sam build --use-container
sam deploy --guided
After deploying, set ENDPOINT
environment variable with the value of HelloWorldApi
CloudFormation Output.
Bash example
ENDPOINT="https://o4w3zen6mj.execute-api.eu-west-1.amazonaws.com/Prod/hello/"
Within the same shell, use your preferred HTTP client to send a few requests to generate metric values.
Generating 100 data points (1 per sec)
for i in $(seq 1 1000); do curl ${ENDPOINT} && sleep 1; done