Skip to content

Commit b0d1955

Browse files
committed
recommended alerts
1 parent b4c39d6 commit b0d1955

File tree

7 files changed

+78
-29
lines changed

7 files changed

+78
-29
lines changed

articles/azure-monitor/toc.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,16 @@ items:
4040
href: alerts/tutorial-log-alert.md
4141
- name: Virtual machines
4242
items:
43+
- name: Enable recommended alerts
44+
href: vm/tutorial-monitor-vm-alert-recommended.md
4345
- name: Create availability alert
4446
href: vm/tutorial-monitor-vm-alert-availability.md
4547
- name: Collect guest logs and metrics
4648
href: vm/tutorial-monitor-vm-guest.md
47-
- name: Create heartbeat alert
48-
href: vm/tutorial-monitor-vm-alert.md
4949
- name: Enable VM insights
5050
href: vm/tutorial-monitor-vm-enable.md
51+
- name: Create heartbeat alert
52+
href: vm/tutorial-monitor-vm-alert.md
5153
- name: Application Insights
5254
items:
5355
- name: Application Insights SDK for ASP.NET Core applications
193 KB
Loading
247 KB
Loading
173 KB
Loading
168 KB
Loading

articles/azure-monitor/vm/monitor-virtual-machine-workloads.md

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,6 @@ VM insights collects only performance data from the guest operating system of en
2222
For a list of the data sources available and details on how to configure them, see [Agent data sources in Azure Monitor](../agents/agent-data-sources.md).
2323

2424

25-
## Controlling costs
26-
Be careful to collect only the data that you require. Costs are associated with any data collected in your workspace. The data that you collect should only support particular analysis and alerting scenarios.
27-
28-
Virtual machines can vary significantly in the amount of data they collect, depending on the amount of telemetry generated by the applications and services they have installed. Since your Azure Monitor cost is dependent on how much data you collect, you want to ensure that you're not collecting any more data than you require to meet your monitoring requirements.
29-
30-
Each data source that you collect may have a different method for filtering out unwanted data. You can also use [transformations](../essentials/data-collection-transformations.md) to implement more granular filtering and also to filter data from columns that provide little value. For example, you might have a Windows event that's valuable for alerting, but it includes columns with redundant or excessive data. You can create a transformation that allows the event to be collected but removes this excessive data.
31-
32-
The following table lists the different data sources on a VM and how to filter the data they collect.
33-
34-
> [!NOTE]
35-
> Azure tables here refers to tables that are created and maintained by Microsoft and documented in the [Azure Monitor reference](/azure/azure-monitor/reference/). Custom tables are created by custom applications and have a suffix of *_CL* in their name.
36-
37-
### Agent Monitor agent
38-
39-
| Target | Description | Filtering method |
40-
|:---|:---|:---|
41-
| Azure tables | Collect data from standard sources such as Windows events, Syslog, and performance data and send to Azure tables in Log Analytics workspace. | Use XPath in the data collection rule (DCR) to collect specific data from client machines.<br>Use transformations to further filter specific events or remove unnecessary columns. |
42-
| Custom tables | Create a data collection rule to collect [file-base text logs](../agents/data-collection-text-log.md) from the agent. | Add a transformation to the data collection rule. |
43-
44-
### Log Analytics agent
45-
46-
| Target | Description | Filtering method |
47-
|:---|:---|:---|
48-
| Azure tables | Collect data from standard sources such as Windows events, Syslog, and performance data and send it to Azure tables in the Log Analytics workspace. | Configure data collection on the workspace. Use workspace transformations to filter records and columns. |
49-
| Custom tables | Configure [text logs](../agents/data-sources-custom-logs.md) on the workspace to collect file-based text logs. | Configure ingestion-time transformation in the workspace DCR to filter or transform incoming data. You must first migrate the custom table to the new logs ingestion API. |
50-
51-
5225
## Controlling costs
5326
Be careful to collect only the data that you require. Costs are associated with any data collected in your workspace. The data that you collect should only support particular analysis and alerting scenarios.
5427

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
---
2+
title: Create availability alert rule for Azure virtual machine (preview)
3+
description: Create an alert rule in Azure Monitor to proactively notify you if a virtual machine is unavailable.
4+
ms.service: azure-monitor
5+
ms.topic: article
6+
ms.custom: subject-monitoring
7+
ms.date: 11/04/2021
8+
ms.reviewer: Xema Pathak
9+
---
10+
11+
# Create availability alert rule for Azure virtual machine (preview)
12+
When you create a new Azure virtual machine, you can quickly enable a set of recommended alert rules that will provide you with initial monitoring for a common set of performance counters.
13+
14+
In this article, you learn how to:
15+
16+
> [!div class="checklist"]
17+
> * View the VM availability metric that shows when a VM is running.
18+
> * Create an alert rule using the VM availability metric to notify you if the virtual machine is unavailable.
19+
> * Create an action group to be proactively notified when an alert is created.
20+
21+
## Prerequisites
22+
To complete the steps in this article you need the following:
23+
24+
- An Azure virtual machine to monitor.
25+
26+
> [!IMPORTANT]
27+
> If the VM has any other alert rules associate with it, then recommended alerts will not be available.
28+
29+
30+
## Create alert rules
31+
From the menu for the VM, select **Alerts**. You'll se a brief description of recommended alerts and the option to enable them. Click **Enable recommended alert rules**.
32+
33+
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-enable.png" alt-text="Screenshot of option to enable recommended alerts for a virtual machine." lightbox="media/tutorial-monitor-vm/recommended-alerts-enable.png":::
34+
35+
36+
A list of recommended alert rules is displayed. You can select which ones to create and change their recommended threshold if you want. Ensure that **Email** is enabled and provide an email address to be notified when any of the alert rules fires. An [action group](../alerts/action-groups.md) will be created with this address. If you already have an action group that you want to use, you can specify it instead.
37+
38+
39+
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-configure.png" alt-text="Screenshot of recommended alert rule configuration." lightbox="media/tutorial-monitor-vm/recommended-alerts-configure.png":::
40+
41+
## View created alert rules
42+
43+
When the alert rule creation is complete, you'll see the alerts screen for the VM.
44+
45+
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-complete.png" alt-text="Screenshot of alert screen for a VM." lightbox="media/tutorial-monitor-vm/recommended-alerts-complete.png":::
46+
47+
Click **Alert rules** to view the alert rules that you just created. You can see that a rule has been created for each that you selected. If the threshold is exceeded for any of these rules, an Azure Monitor alert will be created, and an email will be sent to the address that you specified.
48+
49+
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-rules.png" alt-text="Screenshot of list of created alert rules." lightbox="media/tutorial-monitor-vm/recommended-alerts-rules.png":::
50+
51+
52+
## View the alert
53+
To test the alert rule, stop the virtual machine. If you configured a notification in your action group, then you should receive that notification within a few minutes. You'll also see an alert indicated in the summary shown in the **Alerts** page for the virtual machine.
54+
55+
:::image type="content" source="media/tutorial-monitor-vm/alerts-summary.png" lightbox="media/tutorial-monitor-vm/alerts-summary.png" alt-text="Alerts summary":::
56+
57+
Click on the **Severity** to see the list of those alerts. Click on the alert itself to view its details.
58+
59+
:::image type="content" source="media/tutorial-monitor-vm/alerts-summary.png" lightbox="media/tutorial-monitor-vm/alerts-summary.png" alt-text="Alerts list":::
60+
61+
## Next steps
62+
Now that you know how to create an alert from log data, collect additional logs and performance data from the virtual machine with a data collection rule.
63+
64+
> [!div class="nextstepaction"]
65+
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
66+
67+
68+
69+
## Next steps
70+
Now that you know how to create an alert from log data, collect additional logs and performance data from the virtual machine with a data collection rule.
71+
72+
> [!div class="nextstepaction"]
73+
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
74+

0 commit comments

Comments
 (0)