Best practices for Azure Monitor alerts - Azure Monitor (2024)

  • Article

This article provides architectural best practices for Azure Monitor alerts, alert processing rules, and action groups. The guidance is based on the five pillars of architecture excellence described in Azure Well-Architected Framework.

For more information about alerts and notifications, see Azure Monitor alerts overview.

Reliability

In the cloud, we acknowledge that failures happen. Instead of trying to prevent failures altogether, the goal is to minimize the effects of a single failing component. Use the following information to minimize failure of your Azure Monitor alert rule components.

Azure Monitor alerts offer a high degree of reliability without any design decisions. Conditions where a temporary loss of alert data loss may occur are often mitigated by features of other Azure Monitor components.

Design checklist

  • Configure service health alert rules.
  • Configure resource health alert rules.
  • Avoid service limits for alert rules that produce large scale notifications.

Configuration recommendations

RecommendationBenefit
Configure service health alert rules.Service health alerts send you notifications for outages, service disruptions, planned maintenance and security advisories. See Create or edit an alert rule.
Configure resource health alert rules.Resource Health alerts can notify you in near real-time when these resources have a change in their health status. See Create or edit an alert rule.
Avoid service limits for alert rules that produce large scale notifications.If you have alert rules that would send a large number of notifications, you may reach your service limits for the service you use to send email or SMS notifications. Configure programmatic actions or choose an alternate notification method or provider to handle large scale notifications. See Service limits for notifications.

Security

Security is one of the most important aspects of any architecture. Azure Monitor provides features to employ both the principle of least privilege and defense-in-depth. Use the following information to maximize the security of Azure Monitor alerts.

Design checklist

  • Use customer managed keys if you need your own encryption key to protect data and saved queries in your workspaces
  • Use managed identities to increase security by controlling permissions
  • Assign the monitoring reader role for all users who don’t need configuration privileges
  • Use secure webhook actions
  • When using action groups that use private links, use Event hub actions

Configuration recommendations

RecommendationBenefit
Use customer managed keys if you need your own encryption key to protect data and saved queries in your workspaces.Azure Monitor ensures that all data and saved queries are encrypted at rest using Microsoft-managed keys (MMK). If you require your own encryption key and collect enough data for a dedicated cluster, use customer-managed keys for greater flexibility and key lifecycle control. If you use Microsoft Sentinel, then make sure that you're familiar with the considerations at Set up Microsoft Sentinel customer-managed key.
To control permissions for log search alert rules, use managed identities for your log search alert rules.A common challenge for developers is the management of secrets, credentials, certificates, and keys used to secure communication between services. Managed identities eliminate the need for developers to manage these credentials. Setting a managed identity for your log search alert rules gives you control and visibility into the exact permissions of your alert rule. At any time, you can view your rule’s query permissions and add or remove permissions directly from its managed identity. In addition, using a managed identity is required if your rule’s query is accessing Azure Data Explorer (ADX) or Azure Resource Graph (ARG). See Managed identities.
Assign the monitoring reader role for all users who don’t need configuration privileges.Enhance security by giving users the least amount of privileges required for their role. See Roles, permissions, and security in Azure Monitor.
Where possible, use secure webhook actions.If your alert rule contains an action group that uses webhook actions, prefer using secure webhook actions for additional authentication. See Configure authentication for Secure webhook

Cost optimization

Cost optimization refers to ways to reduce unnecessary expenses and improve operational efficiencies. You can significantly reduce your cost for Azure Monitor by understanding your different configuration options and opportunities to reduce the amount of data that it collects. See Azure Monitor cost and usage to understand the different ways that Azure Monitor charges and how to view your monthly bill.

Note

See Optimize costs in Azure Monitor for cost optimization recommendations across all features of Azure Monitor.

Design checklist

  • Activity log alerts, service health alerts, and resource health alerts are free of charge.
  • When using log search alerts, minimize log search alert frequency.
  • When using metric alerts, minimize the number of resources being monitored.

Configuration recommendations

RecommendationBenefit
Keep in mind that activity log alerts, service health alerts, and resource health alerts are free of charge.Azure Monitor activity alerts, service health alerts and resource health alerts are free. If what you want to monitor can be achieved with these alert types, use them.
When using log search alerts, minimize log search alert frequency.When configuring log search alerts, keep in mind that the more frequent the rule evaluation, the higher the cost. Configure your rules accordingly.
When using metric alerts, minimize the number of resources being monitored.Some resource types support metric alert rules that can monitor multiple resources of the same type. For these resource types, keep in mind that the rule can become expensive if the rule monitors many resources. To reduce costs, you can either reduce the scope of the metric alert rule or use log search alert rules, which are less expensive to monitor a large number of resources.

Operational excellence

Operational excellence refers to operations processes required keep a service running reliably in production. Use the following information to minimize the operational requirements for supporting Azure Monitor alerts.

Design checklist

  • Use dynamic thresholds in metric alert rules where appropriate.
  • Whenever possible, use one alert rule to monitor multiple resources.
  • To control behavior at scale, use alert processing rules.
  • Leverage custom properties to enhance diagnostics
  • Leverage Logic Apps to customize, enrich, and integrate with a variety of systems

Configuration recommendations

RecommendationBenefit
Use dynamic thresholds in metric alert rules where appropriate.Dynamic thresholds are use machine learning to determine the correct threshold, so you don't need to know the correct threshold to configure. Dynamic thresholds are also useful for rules that monitor multiple resources, and a single threshold can't be configured for all of the resources. See Dynamic thresholds in metric alerts.
Whenever possible, use one alert rule to monitor multiple resources.Using alert rules that monitor multiple resources reduces management overhead, by allowing you to manage one rule to monitor a large number of resources.
To control behavior at scale, use alert processing rules.Alert processing rules can be used to reduce the number of alert rules you need to create and manage.
Use custom properties to enhance diagnostics.If the alert rule uses action groups, you can add your own properties to include in the alert notification payload. You can use these properties in the actions called by the action group, such as webhook, Azure function or logic app actions.
Use Logic Apps to customize the notification workflow and integrate with various systems.You can use Azure Logic Apps to build and customize workflows for integration. Use Logic Apps to customize your alert notifications. You can:
- Customize the alerts email by using your own email subject and body format.
- Customize the alert metadata by looking up tags for affected resources or fetching a log query search result.
- Integrate with external services by using existing connectors like Outlook, Microsoft Teams, Slack, and PagerDuty. You can also configure the logic app for your own services.

Performance efficiency

Performance efficiency is the ability of your workload to scale to meet the demands placed on it by users in an efficient manner.Alerts offer a high degree of performance efficiency without any design decisions.

Next step

  • Get best practices for a complete deployment of Azure Monitor.
Best practices for Azure Monitor alerts - Azure Monitor (2024)

FAQs

Best practices for Azure Monitor alerts - Azure Monitor? ›

Azure Monitor is the built-in monitoring solution offered by Microsoft Azure, which helps you collect and analyze monitoring data from cloud and on-premises environments. Azure Monitor alerts are automated notifications that provide insights into the status of Azure resources.

What is the difference between Azure Monitor and Azure alerts? ›

Azure Monitor is the built-in monitoring solution offered by Microsoft Azure, which helps you collect and analyze monitoring data from cloud and on-premises environments. Azure Monitor alerts are automated notifications that provide insights into the status of Azure resources.

What are the limitations of Azure Monitor? ›

Alert and recording rules
LimitValue
Rule groups per Azure Monitor workspace, in an Azure subscription500 You can request an increase.
Rules per rule group20 This limit can't be increased.
Rule group evaluation intervalBetween 1 minute - 24 hours. Default is 1 minute.
Active alertsNo limit at this time.
Feb 5, 2024

Can an Azure Monitor send alerts? ›

Azure Monitor alerts have three resources: alert rules, alert processing rules, and action groups. Each of these resources is its own independent resource and can be mixed and matched with each other. Alert rules: defines a resource scope and conditions on the resources' telemetry.

What two events will cause Azure to send alert email notifications? ›

The two events that will cause Azure to send alert email notifications are when a rule becomes active and when a rule is disabled. Summary: Alert email notifications in Azure are triggered by specific events such as rule activation and rule disablement.

What are the three main functions of Azure Monitor? ›

Azure Monitor's core consumption methods include tools to provide insights, visualize, and analyze data. The visualization tools build on the analysis tools and the insights build on top of both the visualization and analysis tools.

What is the difference between Azure Monitor and Azure Monitor logs? ›

In conclusion, Azure Monitor and Log Analytics collectively offer a robust solution for monitoring Azure resources. While Azure Monitor provides a lot of features including aggregation of logs, real-time insights and performance metrics, Log Analytics allows advanced query capabilities and extensive log data analysis.

What are the benefits of Azure monitor? ›

By automating Azure Monitoring, IT Professionals and Azure Administrator have more data and insights to work with. They receive system-wide data into the performance, processes, and issues.

What are the key features of an Azure monitor? ›

Azure Monitor has three core components:
  • Application insights, used to monitor web applications.
  • Log analytics, used to query and analyze logged event data.
  • Alerts, used to set up automatic notifications and actions when issues are detected.

Which two data types should you use Azure monitor? ›

Final answer: In Azure Monitor, metrics and logs are the two data types used for editing and running queries to monitor application performance. Metrics provide numerical performance data at a point in time, while logs offer detailed records for analysis and troubleshooting.

Which capabilities does the alert Monitor have? ›

You can use the Alert Monitor to perform complete and detailed monitoring of all SAP and non-SAP systems, the host systems, and the database. All errors generate alerts, which are displayed in a tree structure. The alerts contain a status indicator with a color and a numerical value.

What is the time range for Azure Monitor alert? ›

The time range differs based on the frequency of the alert: 1 minute: The alert condition isn't met for 10 minutes. 5 to 15 minutes: The alert condition isn't met for three frequency periods. 15 minutes to 11 hours: The alert condition isn't met for two frequency periods.

How to create custom alerts in Azure Monitor? ›

Then create an alert that uses that action group.
  1. Go to the Azure Monitor page and select Alerts from the pane on the left.
  2. Select Action groups > Create.
  3. Select values for Subscription, Resource group, and Region.
  4. Enter a name for Action group name and Display name.
  5. Select the Actions tab.
Mar 10, 2024

How to create Azure Monitor alerts for non compliant Azure policies? ›

Follow the following steps to create the alert rule via the portal:
  1. Browse to Azure Monitor and click on Alerts blade.
  2. Click on New alert rules.
  3. On the Create rule page, select the appropriate subscription and the Log Analytics workspace.
  4. Add a condition, on the Configure signal logic page, select Custom log search.
Jul 2, 2019

Does Azure Monitor allow you to create alerts from log queries? ›

Azure Monitor alerts proactively notify you when important conditions are found in your monitoring data. Log search alert rules create an alert when a log query returns a particular result.

What is the alert processing rule? ›

You can use alert processing rules to add action groups or remove (suppress) action groups from your fired alerts. You can apply alert processing rules to different resource scopes, from a single resource, or to an entire subscription, as long as they are within the same subscription as the alert processing rule.

What is the difference between alert and Monitor? ›

A set of software components used for data collection, their processing, and presentation is called a monitoring system. Alerting is the capability of a monitoring system to detect and notify the operators about meaningful events that denote a grave change of state.

What does an Azure Monitor do? ›

Azure Monitor is a scalable cloud service that processes and stores large amounts of data, although Azure Monitor can monitor resources that are on-premises and in other clouds.

What is the difference between Azure event hub and Azure Monitor? ›

Data in Azure Monitor Logs is stored in tables, with each table having its own set of unique properties. Azure Event Hubs has the capability to dispatch logs to either of two destination tables - Azure Diagnostic or Resource specific tables in Log Analytics.

What is the difference between Azure Monitor and Sentinel? ›

Azure Monitor primarily focuses on operational data like application logs, Azure activity logs, and performance metrics. Conversely, Azure Sentinel is designed to work with a more comprehensive range of data, including but not limited to security events, threat intelligence, and cloud application data.

Top Articles
Truth | Definition, Importance, Theories, & Facts
Asset based community development
7 C's of Communication | The Effective Communication Checklist
Tyson Employee Paperless
Winston Salem Nc Craigslist
Mopaga Game
Big Spring Skip The Games
EY – все про компанію - Happy Monday
Katie Boyle Dancer Biography
Scentsy Dashboard Log In
Large storage units
How Quickly Do I Lose My Bike Fitness?
Best Pawn Shops Near Me
Wordle auf Deutsch - Wordle mit Deutschen Wörtern Spielen
Housework 2 Jab
Truck Toppers For Sale Craigslist
Walmart Windshield Wiper Blades
Letter F Logos - 178+ Best Letter F Logo Ideas. Free Letter F Logo Maker. | 99designs
Bend Pets Craigslist
Simplify: r^4+r^3-7r^2-r+6=0 Tiger Algebra Solver
Violent Night Showtimes Near Amc Fashion Valley 18
Drift Boss 911
Pokemon Unbound Shiny Stone Location
THE FINALS Best Settings and Options Guide
Munis Self Service Brockton
Vernon Dursley To Harry Potter Nyt Crossword
How To Tighten Lug Nuts Properly (Torque Specs) | TireGrades
Kirk Franklin Mother Debra Jones Age
Bidrl.com Visalia
208000 Yen To Usd
Stephanie Bowe Downey Ca
Ringcentral Background
Top Songs On Octane 2022
Sam's Club Near Wisconsin Dells
Stafford Rotoworld
Why I’m Joining Flipboard
Keir Starmer looks to Italy on how to stop migrant boats
303-615-0055
Join MileSplit to get access to the latest news, films, and events!
Letter of Credit: What It Is, Examples, and How One Is Used
Great Clips Virginia Center Commons
Craigslist Farm And Garden Reading Pa
Craigslist Central Il
Luciane Buchanan Bio, Wiki, Age, Husband, Net Worth, Actress
Citroen | Skąd pobrać program do lexia diagbox?
Truck Works Dothan Alabama
Ucla Basketball Bruinzone
Beds From Rent-A-Center
Theater X Orange Heights Florida
Pronósticos Gulfstream Park Nicoletti
Latest Posts
Article information

Author: Aron Pacocha

Last Updated:

Views: 5358

Rating: 4.8 / 5 (68 voted)

Reviews: 83% of readers found this page helpful

Author information

Name: Aron Pacocha

Birthday: 1999-08-12

Address: 3808 Moen Corner, Gorczanyport, FL 67364-2074

Phone: +393457723392

Job: Retail Consultant

Hobby: Jewelry making, Cooking, Gaming, Reading, Juggling, Cabaret, Origami

Introduction: My name is Aron Pacocha, I am a happy, tasty, innocent, proud, talented, courageous, magnificent person who loves writing and wants to share my knowledge and understanding with you.