You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/vm/tutorial-monitor-vm-alert-availability.md
+1-8Lines changed: 1 addition & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,16 +102,9 @@ To test the alert rule, stop the virtual machine. If you configured a notificati
102
102
103
103
104
104
## Next steps
105
-
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.
105
+
Now that you have alerting in place when the VM goes down, enable VM insights to install the Azure Monitor agent which collects
106
106
107
107
> [!div class="nextstepaction"]
108
108
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
109
109
110
110
111
-
112
-
## Next steps
113
-
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.
114
-
115
-
> [!div class="nextstepaction"]
116
-
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
Copy file name to clipboardExpand all lines: articles/azure-monitor/vm/tutorial-monitor-vm-alert-recommended.md
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,12 @@ A list of recommended alert rules is displayed. You can select which ones to cre
41
41
42
42
:::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":::
43
43
44
+
Expand each of the alert rules to inspect its details. By default, the severity for each is **Informational**. You may want to change to another severity such as **Error**.
When the alert rule creation is complete, you'll see the alerts screen for the VM.
@@ -52,18 +58,9 @@ Click **Alert rules** to view the rules you just created. You can click on any o
52
58
:::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":::
53
59
54
60
55
-
56
-
## Next steps
57
-
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.
58
-
59
-
> [!div class="nextstepaction"]
60
-
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
61
-
62
-
63
-
64
61
## Next steps
65
-
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.
62
+
Now that you know have alerting for common VM metrics, create an alert rule to detect when the VM goes offline.
66
63
67
64
> [!div class="nextstepaction"]
68
-
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
65
+
> [Create availability alert rule for Azure virtual machine (preview)](tutorial-monitor-vm-alert-availability.md)
Copy file name to clipboardExpand all lines: articles/azure-monitor/vm/tutorial-monitor-vm-alert.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
---
2
-
title: Alert when Azure virtual is down
3
-
description: Create an alert rule in Azure Monitor to proactively notify you if a virtual machine is unavailable.
2
+
title: Tutorial - Create alert when Azure virtual machine is unavailable
3
+
description: Create an alert rule in Azure Monitor to proactively notify you if the agent on a virtual machine becomes unresponsive.
4
4
ms.service: azure-monitor
5
5
ms.topic: article
6
6
ms.custom: subject-monitoring
7
7
ms.date: 11/04/2021
8
8
ms.reviewer: Xema Pathak
9
9
---
10
10
11
-
# Create alert when Azure virtual machine is unavailable
11
+
# Tutorial: Create alert when Azure virtual machine is unavailable
12
12
One of the most common alerting conditions for a virtual machine is whether the virtual machine is running. Once you enable monitoring with VM insights in Azure Monitor for the virtual machine, a heartbeat is sent to Azure Monitor every minute. You can create a log query alert rule that sends an alert if a heartbeat isn't detected. This method not only alerts if the virtual machine isn't running, but also if it's not responsive.
Copy file name to clipboardExpand all lines: articles/azure-monitor/vm/tutorial-monitor-vm-enable-insights.md
+13-16Lines changed: 13 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,41 +8,38 @@ ms.date: 12/03/2022
8
8
ms.reviewer: Xema Pathak
9
9
---
10
10
11
-
# Enable monitoring with VM insights for Azure virtual machine
12
-
To monitor the guest operating system and workloads on an Azure virtual machine, you need to install the [Azure Monitor agent](../agents/azure-monitor-agent-overview.md) and create a [data collection rule (DCR)](../essentials/data-collection-rule-overview.md) that specifies which data to collect. One option is to use VM insights, which installs the agent and starts collecting a predefined set of performance counters. You can optionally enable the collection detailed process and telemetry to enable the Map feature of VM insights which gives you a visual representation of your VM environment.
13
-
14
-
15
-
> [!NOTE]
16
-
> If you're completely new to Azure Monitor, you should start with [Tutorial: Monitor Azure resources with Azure Monitor](../essentials/monitor-azure-resource.md). Azure virtual machines generate similar monitoring data as other Azure resources such as platform metrics and Activity log. This tutorial describes how to enable additional monitoring unique to virtual machines.
11
+
# Tutorial Enable monitoring with VM insights for Azure virtual machine
12
+
VM insights is a feature of Azure Monitor that quickly gets you started monitoring your virtual machines. You can view trends of performance data, running processes on individual machines, and dependencies between machines. VM insights installs the [Azure Monitor agent](../agents/azure-monitor-agent-overview.md) which is required to collect the guest operating system and prepares you to configure additional monitoring from your VMs according to your particular requirements.
17
13
18
14
In this tutorial, you learn how to:
19
15
20
16
> [!div class="checklist"]
21
-
> *Create a Log Analytics workspace to collect performance and log data from the virtual machine.
22
-
> * Enable VM insights for the virtual machine which installs the required agents and begins data collection.
17
+
> *Enable VM insights for a virtual machine which installs the Azure Monitor agent and begins data collection.
18
+
> * Enable optional collection of detailed process and telemetry to enable the Map feature of VM insights.
23
19
> * Inspect graphs analyzing performance data collected from the virtual machine.
24
20
> * Inspect map showing processes running on the virtual machine and dependencies with other systems.
25
21
26
22
27
-
> [!NOTE]
28
-
> VM insights installs the Azure Monitor agent which collects performance data from the guest operating system of virtual machines. It doesn't collect logs from the guest operating system and doesn't send performance data to Azure Monitor Metrics. For this functionality, see [Tutorial: Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md).
29
-
30
23
## Prerequisites
31
24
To complete this tutorial, you need the following:
32
25
33
26
- An Azure virtual machine to monitor.
34
27
35
-
> [NOTE!]
28
+
> [!NOTE]
36
29
> If you selected the option to **Enable virtual machine insights** when you created your virtual machine, then VM insights will already be enabled. If the machine was previously enabled for VM insights using Log Analytics agent, see [Enable VM insights in the Azure portal](vminsights-enable-portal.md) for upgrading to Azure Monitor agent.
37
30
38
31
39
32
40
33
## Enable VM insights
41
-
Select **Insights** from your virtual machine's menu in the Azure portal. If VM insights hasn't been enabled, you should see a short description of it and an option to enable it. Click **Enable** to open the **Monitoring configuration** pane. Leave the default option of **Azure Monitor agent**. VM insights will create a default data collection rule that doesn't include collection of processes and dependencies. Click **Create new** to create a new data collection rule.
34
+
Select **Insights** from your virtual machine's menu in the Azure portal. If VM insights hasn't been enabled, you should see a short description of it and an option to enable it. Click **Enable** to open the **Monitoring configuration** pane. Leave the default option of **Azure Monitor agent**.
35
+
36
+
In order to reduce cost for data collection, VM insights creates a default [data collection rule](../essentials/data-collection-rule-overview.md) that doesn't include collection of processes and dependencies. To enable this collection, click **Create new** to create a new data collection rule.
42
37
43
38
:::image type="content" source="media/tutorial-monitor-vm/enable-vminsights.png" lightbox="media/tutorial-monitor-vm/enable-vminsights.png" alt-text="Enable VM insights with workspace":::
44
39
45
-
Provide a **Data collection rule name** and then select **Enable processes and dependencies (Map)**. Keep the default Log Analytics workspace for the subscription unless you have another workspace that you want to use. Click **Create** to create the new data collection rule. and then **Configure** to start VM insights configuration.
40
+
Provide a **Data collection rule name** and then select **Enable processes and dependencies (Map)**. You can't disable collection of guest performance since this is required for VM insights.
41
+
42
+
Keep the default Log Analytics workspace for the subscription unless you have another workspace that you want to use. Click **Create** to create the new data collection rule. and then **Configure** to start VM insights configuration.
46
43
47
44
:::image type="content" source="media/tutorial-monitor-vm/enable-vminsights-create-new-rule.png" lightbox="media/tutorial-monitor-vm/enable-vminsights-create-new-rule.png" alt-text="Enable VM insights with workspace":::
48
45
@@ -68,8 +65,8 @@ The **Maps** view provides different tabs with information collected about the v
Now that you're collecting data from the virtual machine, you can use that data to create alerts to proactively notify you when issues are detected.
68
+
VM insights collects performance data from the VM guest operating system, but it doesn't collect log data such as Windows event log or syslog. Now that you have the machine monitored with the Azure Monitor agent, You can create an additional data collection rule to perform this collection.
72
69
73
70
> [!div class="nextstepaction"]
74
-
> [Create alert when Azure virtual machine is unavailable](tutorial-monitor-vm-alert.md)
71
+
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
0 commit comments