|
| 1 | +--- |
| 2 | +title: Configure Azure Monitor alerts for Application Gateway |
| 3 | +description: Learn how to use ARM templates to configure Azure Monitor alerts for Application Gateway |
| 4 | +author: vhorne |
| 5 | +ms.author: victorh |
| 6 | +ms.service: application-gateway |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 01/12/2022 |
| 9 | +--- |
| 10 | + |
| 11 | +# Configure Azure Monitor alerts for Application Gateway |
| 12 | + |
| 13 | + |
| 14 | +Azure Monitor alerts proactively notify you when important conditions are found in your monitoring data. They allow you to identify and address issues in your system before your customers notice them. For more information about Azure Monitor Alerts for Application Gateway, see [Monitoring Azure Application Gateway](monitor-application-gateway.md#alerts). |
| 15 | + |
| 16 | +## Configure alerts using ARM templates |
| 17 | + |
| 18 | +You can use ARM templates to quickly configure important alerts for Application Gateway. Before you begin, consider the following details: |
| 19 | + |
| 20 | +- Azure Monitor alert rules are charged based on the type and number of signals it monitors. See [Azure Monitor pricing](https://azure.microsoft.com/pricing/details/monitor/) before deploying for pricing information. Or you can see the estimated cost in the portal after deployment: |
| 21 | + :::image type="content" source="media/configure-alerts-with-templates/alert-pricing.png" alt-text="Image showing application gateway pricing details"::: |
| 22 | +- You need to create an Azure Monitor action group in advance and then use the Resource ID for as many alerts as you need. Azure Monitor alerts use this action group to notify users that an alert has been triggered. For more information, see [Create and manage action groups in the Azure portal](../azure-monitor/alerts/action-groups.md). |
| 23 | +- The templates for alerts described here are defined generically for settings like Severity, Aggregation Granularity, Frequency of Evaluation, Condition Type, and so on. You can modify the settings after deployment to meet your needs. See [Understand how metric alerts work in Azure Monitor](../azure-monitor/alerts/alerts-metric-overview.md) for more information. |
| 24 | +- The templates for metric-based alerts use the **Dynamic threshold** value with [High sensitivity](../azure-monitor/alerts/alerts-dynamic-thresholds.md#what-does-sensitivity-setting-in-dynamic-thresholds-mean). You can choose to adjust these settings based on your needs. |
| 25 | + |
| 26 | +## ARM templates |
| 27 | + |
| 28 | +The following ARM templates are available to configure Azure Monitor alerts for Application Gateway. |
| 29 | + |
| 30 | +### Alert for Backend Response Status as 5xx |
| 31 | + |
| 32 | +This notification is based on Metrics signal. |
| 33 | + |
| 34 | +<Deploy to Azure> |
| 35 | + |
| 36 | +### Alert for average unhealthy host count |
| 37 | + |
| 38 | +This notification is based on Metrics signal. |
| 39 | + |
| 40 | +<Deploy to Azure> |
| 41 | + |
| 42 | +### Alert for Backend Last Byte Response Time |
| 43 | + |
| 44 | +This notification is based on Metrics signal. |
| 45 | + |
| 46 | +<Deploy to Azure> |
| 47 | + |
| 48 | +### Alert for Key Vault integration issues |
| 49 | + |
| 50 | +Based on its Azure Advisor recommendation. |
| 51 | + |
| 52 | +<Deploy to Azure> |
| 53 | + |
| 54 | +### Alert for Insufficient Instances to support traffic |
| 55 | + |
| 56 | +This notification is based on its Azure Advisor recommendation. |
| 57 | + |
| 58 | +<Deploy to Azure> |
| 59 | + |
| 60 | +## Next steps |
| 61 | + |
| 62 | +<!-- Add additional links. You can change the wording of these and add more if useful. --> |
| 63 | + |
| 64 | +- See [Monitoring Application Gateway data reference](monitor-application-gateway-reference.md) for a reference of the metrics, logs, and other important values created by Application Gateway. |
| 65 | + |
| 66 | +- See [Monitoring Azure resources with Azure Monitor](../azure-monitor/essentials/monitor-azure-resource.md) for details on monitoring Azure resources. |
0 commit comments