Thank you for reaching out and apologies for the delay here.
Based on your questions above.
Currently I need to monitor the app gateway(WAF V2 & Standard V2 skus) based on following categories : Performance limit, Utilization limit, Compute Units using the application gateway Metrics available in Azure Monitor .
I understand you wish to monitor the Application Gateway for Performance limit, Utilization limit, Compute Units using application gateway Metrics available. Out of the available metrics here for application gateway I think monitoring following metrics can help
Current compute units: Compute unit metric is a representation of your gateway's CPU utilization. As documented here Compute Unit is the measure of compute capacity consumed. Factors affecting compute unit consumption are TLS connections/sec, URL Rewrite computations, and WAF rule processing. The number of requests a compute unit can handle depends on various criteria like TLS certificate key size, key exchange algorithm, header rewrites, and in case of WAF - incoming request size.
Current capacity units: Capacity units represent overall gateway utilization in terms of throughput, compute, and connection count.
As documented here Capacity Unit is the measure of capacity utilization for an Application Gateway across multiple parameters.
A single Capacity Unit consists of the following parameters:
- 2500 Persistent connections
- 2.22-Mbps throughput
- 1 Compute Unit
If any of these parameters are exceeded, then another N capacity units are necessary, even if the other two parameters don’t exceed this single capacity unit’s limits. The parameter with the highest utilization among the three above will be internally used for calculating capacity units, which is in turn billed.
Is the instance count is dependent on the performance or utilization.
Yes, Instance count depicts the utilization and if the instance count has reached the maximum limit then it may cause performance issues. An instance guarantees a minimum of 10 capacity units in terms of processing capability. The same instance could potentially support more than 10 capacity units for different traffic patterns depending upon the Capacity Unit parameters described above.
Is there any limit of the count of capacity units consumed to load balance the traffic. How to identify the maximum count of capacity units and the compute units.
Depending on the scaling mechanism selected for the Application gateway and the instance count opted, each instance is roughly equivalent to 10 more reserved Capacity Units. Currently Azure Application Gateway can support maximum 125 instance counts. To identify the maximum capacity units available, multiply the maximum instance count opted times 10.
Is there any limit of Current connections of the gateway based on the type of SKU. Not able to identify the no. of concurrent connections of the gateway.
Yes, as explained in this example here
A Capacity Unit can handle 2500 persistent connections and then additional capacity unit is added as this limit is reached.
Currently the Current connections metric provides the total number of concurrent connections active from clients to the Application Gateway
When the threshold reaches the specified limit for the above categories need to notify an alert.
Yes for application Gateway V2 you can set alerts as described here
You can refer to this documentation to understand how to set-up alerts for Application gateway.
Hope this helps! Please let me know if you have any additional questions. Thank you!
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.