Hello Martino Pavone
I understand that you are looking for a metric to measure the number of instances of Application Gateway.
However, currently, only the following metrics are available. Please refer to the document below for further details:
Supported metrics for application gateways
But there is a way to measure the number of instances of an Azure Application Gateway, although it is not directly provided as a metric. Instead, you can infer the number of instances by looking at the Capacity Units metric.
Azure Application Gateway's pricing is based on Capacity Units rather than the number of instances. Each instance guarantees a minimum of 10 capacity units in terms of processing capability. Therefore, by examining the Capacity Units metric, you can determine the number of instances. For example, if you see 20 capacity units, it will mean 2 instances, and 22 capacity units would mean 3 instances.
Check the below document for more understanding
Hope the above answer helps! Please let us know do you have any further queries.
Please do consider to “up-vote” wherever the information provided helps you, this can be beneficial to other community members.