Hello @Murarisetty Yamuna ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to setup an alert for your WAF v2 Application gateway, whenever the instance count is reaching maximum instances of 125.
To monitor instances approaching the maximum limit in application gateway, Is the metric signal "Current Capacity Unit " is the precise or not?
Capacity units represent overall gateway utilization in terms of throughput, compute, and connection count.
However, Compute unit's the measure of compute utilization of your Application Gateway.
Compute unit metric is a representation of your gateway's CPU utilization and based on your peak usage divided by 10, you can set the minimum number of instances required. Note that 1 application gateway instance can handle a minimum of 10 compute units.
So, the metric signal "Current Compute Unit" is more precise.
Is creating an alert on the capacity units with a threshold value of 940 (75%) is the precise solution for continuously monitoring instances, ensuring awareness as they approach the maximum limit?
As mentioned above, to monitor the instance count usage, you should configure an alert for Avg. Compute Unit utilization crossing 75%.
If you want to know whenever the instance count is reaching maximum instances of 125, then you could setup an alert for Avg. Compute Unit utilization as below:
- Maximum compute units are 1250(125*10).
- 75% of 1250 = 937.5 which could approx. to 940
Kindly let us know if the above helps or you need further assistance on this issue.
Please don’t forget to "Accept the answer" wherever the information provided helps you, this can be beneficial to other community members.