Search code examples
amazon-web-servicescloudaws-application-load-balancer

AWS ALB Request Count Per Route


I want the Requests Per Unit Time at route/path level metrics from AWS Lambda.

For example, path = /admin/options, Requests Per Second = 200.

My application supports many routes like this

I have looked into documentation but the Requests per unit time is not at route level.


Solution

  • As already pointed out, you have to do it by analyzing ALB access logs. This process is much simplified as Amazon Athena can query the ALB's logs directly in S3 as explained in Querying Application Load Balancer Logs.

    This means that you don't have to download the logs before processing, or write any custom processing application. Instead you can run Amazon Athena queries against the logs.