Forum Discussion

Sathishku1340's avatar
Sathishku1340
Copper Contributor
May 18, 2023

Azure Load Balancer

Hello All,

I have created azure load balancer and vmss(virtual machine scale set) as backend.

I hosted web application in the vmss using custom script extension.

I wanted to know how many request is going to my web app via  load balancer.

 

Is there any metrics available or any other way to find the total number of requests?

 

4 Replies

  • pksony88's avatar
    pksony88
    Copper Contributor

    Sathishku1340 

     

    To monitor the requests going to your web app via the Azure Load Balancer, follow these steps:

    1. Load Balancer Insights:
      • Azure Load Balancer provides insights through a prebuilt monitoring dashboard in the Azure portal. You can access this by navigating to the Insights blade of your Load Balancer resource.
      • https://learn.microsoft.com/en-us/azure/load-balancer/monitor-load-balancer.
    2. View Metrics:
      • Go to the metrics page for your standard load balancer resources.
      • You can do this in two ways:
        • On the load balancer’s resource page, select the metric type from the drop-down list.
        • On the Azure Monitor page, select the load balancer resource.
      • https://learn.microsoft.com/en-us/azure/load-balancer/monitor-load-balancer.
    3. Diagnostic Settings:
      • Create a diagnostic setting to collect monitoring data.
      • In the Azure portal:
        • Search for “Load balancer” and select your load balancer.
        • Go to the Monitoring section and choose Diagnostic settings.
        • Add a diagnostic setting with the category AllMetrics.
        • https://learn.microsoft.com/en-us/azure/load-balancer/monitor-load-balancer.

    Remember to explore the insights and metrics to get a comprehensive view of your load balancer’s performance and request traffic!

  • I guess you can use Azure Monitor's metrics and logs to gather information about the traffic passing through the load balancer. you need to configure the metric in Azure Load balancer
    • sathish175's avatar
      sathish175
      Copper Contributor
      Thanks for your reply.

      Yes, we can use azure monitor for metrics and logs to get the information.But, there is no metrics to find the total incoming request count.

      I am thinking as azure load balancer operating at layer 4 we don't have the metrics to find the incoming request count. But there should be some way to find it.

      If you know any way to find it. Please, let me know.

Resources