Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Your observation is correct, currently, there are no metrics that could give you the number of current active connections to the backend endpoints from Azure Load Balancer.
However, you can still see the Total number of active connections per Virtual Machine (LB backend).
- The point to note here is that this displays the total number of active connections to this VM, not the one explicitly created via the Load Balancer.
- i.e., if your backend is exposed directly to Internet along with Load Balancer, and is expected to serve requests directly, the effective metric will be the combination of total requests via the LB and the total requests directly from the VM.
- However, looking at your use case "taking an endpoint off the load balancer for deployments or updates" - I believe this should do the trick.
Open the Load Balancer and
- Navigate to "Insights" from the left tab and click "View Detailed Metrics"
- Make sure you select the appropriate "Time Range" and select "Flow Distribution" tab
- Below this, you can see the metrics for Inbound Flows - which you can edit as well.
- You can either use "Sum" or "Average" aggregation to understand the current flows to the backend VM.
- Again, this is just a view of the actual VM's metrics (i.e., the metrics are from VMs and not from the Load Balancer itself)
- Data Reference : Metrics for Microsoft.Compute/virtualMachines
- Metric Name : Inbound Flows
Hope this helps.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.