Relative Content

Tag Archive for pythonamazon-web-servicesboto3amazon-cloudwatch

Retrieve specific metrics from AWS Cloudwatch with boto3

I have a serverless application, which consists of numerous lambda functions. Each lambda function has a tag “STAGE”, which is set either to “production” or “staging”. What I need now is to retrieve the data on overall invocations for each production lambda function for the last calendar month (30 days or 4 weeks), with a period of 1 day. I manage to achieve that in the AWS Console (Cloudwatch > Explorer), like shown on the screenshot below: