How can i capture traffic in my web app on Azure ?

Karen 1 Reputation point
2021-01-27T08:54:16.073+00:00

I have a App Service in an App Service plan. I have created a scale out for the web app, it is Manual Scale out configured to 4 instances.
How can i capture or retrieve how much traffic is hitting the web app instances and also how much traffic is being redirected to the scaled out instances ?

Thanks

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,037 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SwathiDhanwada-MSFT 18,556 Reputation points
    2021-01-28T12:37:56.437+00:00

    @Karen Thanks for your comment. Application Insights is a feature of Azure Monitor which you can use to monitor Request rates, dependency , page views and several others for your azure web app. After enabling Application Insights, you can query for traffic data for each cloud instance of web app. For instance, if you want to view the number of requests that the has been redirected to cloud instance of the Azure Web app, below kusto query will help in achieving the requirement.

    requests   
    | where timestamp > ago(24h)   
    | summarize count() by name , cloud_RoleName , cloud_RoleInstance  
    

    Reference Articles :

    -Application Insights
    -Live Stream