Skip to content

Commit 993cbd7

Browse files
committed
Ready for final review
1 parent 9fbe8d2 commit 993cbd7

12 files changed

+43
-62
lines changed

.openpublishing.redirection.azure-monitor.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5531,6 +5531,11 @@
55315531
"source_path_from_root": "/articles/azure-monitor/app/export-data-model.md",
55325532
"redirect_url": "/azure/azure-monitor/app/export-telemetry",
55335533
"redirect_document_id": false
5534+
},
5535+
{
5536+
"source_path_from_root": "/articles/azure-monitor/vm/tutorial-monitor-vm-alert.md",
5537+
"redirect_url": "/azure/azure-monitor/vm/tutorial-monitor-vm-alert-availability",
5538+
"redirect_document_id": false
55345539
}
55355540
]
55365541
}

articles/azure-monitor/toc.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,10 @@ items:
4444
href: vm/tutorial-monitor-vm-alert-recommended.md
4545
- name: Create availability alert
4646
href: vm/tutorial-monitor-vm-alert-availability.md
47-
- name: Collect guest logs and metrics
48-
href: vm/tutorial-monitor-vm-guest.md
4947
- name: Enable VM insights
5048
href: vm/tutorial-monitor-vm-enable.md
51-
- name: Create heartbeat alert
52-
href: vm/tutorial-monitor-vm-alert.md
49+
- name: Collect guest logs and metrics
50+
href: vm/tutorial-monitor-vm-guest.md
5351
- name: Application Insights
5452
items:
5553
- name: Application Insights SDK for ASP.NET Core applications
231 Bytes
Loading
-2.55 KB
Loading
245 KB
Loading
-3.23 KB
Loading

articles/azure-monitor/vm/tutorial-monitor-vm-alert-availability.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,16 +102,9 @@ To test the alert rule, stop the virtual machine. If you configured a notificati
102102

103103

104104
## 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
106106

107107
> [!div class="nextstepaction"]
108108
> [Collect guest logs and metrics from Azure virtual machine](tutorial-monitor-vm-guest.md)
109109
110110

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)
117-

articles/azure-monitor/vm/tutorial-monitor-vm-alert-recommended.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ A list of recommended alert rules is displayed. You can select which ones to cre
4141

4242
:::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":::
4343

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**.
45+
46+
:::image type="content" source="media/tutorial-monitor-vm/recommended-alerts-configure-severity.png" alt-text="Screenshot of recommended alert rule severity configuration." lightbox="media/tutorial-monitor-vm/recommended-alerts-configure-severity.png":::
47+
48+
Click **Enable** to create the alert rules.
49+
4450
## View created alert rules
4551

4652
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
5258
:::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":::
5359

5460

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-
6461
## 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.
6663

6764
> [!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)
6966

articles/azure-monitor/vm/tutorial-monitor-vm-alert.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
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.
44
ms.service: azure-monitor
55
ms.topic: article
66
ms.custom: subject-monitoring
77
ms.date: 11/04/2021
88
ms.reviewer: Xema Pathak
99
---
1010

11-
# Create alert when Azure virtual machine is unavailable
11+
# Tutorial: Create alert when Azure virtual machine is unavailable
1212
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.
1313

1414

articles/azure-monitor/vm/tutorial-monitor-vm-enable.md renamed to articles/azure-monitor/vm/tutorial-monitor-vm-enable-insights.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,38 @@ ms.date: 12/03/2022
88
ms.reviewer: Xema Pathak
99
---
1010

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.
1713

1814
In this tutorial, you learn how to:
1915

2016
> [!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.
2319
> * Inspect graphs analyzing performance data collected from the virtual machine.
2420
> * Inspect map showing processes running on the virtual machine and dependencies with other systems.
2521
2622

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-
3023
## Prerequisites
3124
To complete this tutorial, you need the following:
3225

3326
- An Azure virtual machine to monitor.
3427

35-
> [NOTE!]
28+
> [!NOTE]
3629
> 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.
3730
3831

3932

4033
## 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.
4237

4338
:::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":::
4439

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.
4643

4744
:::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":::
4845

@@ -68,8 +65,8 @@ The **Maps** view provides different tabs with information collected about the v
6865
:::image type="content" source="media/tutorial-monitor-vm/map-details.png" lightbox="media/tutorial-monitor-vm/map-details.png" alt-text="VM insights map view with machine details":::
6966

7067
## Next steps
71-
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.
7269

7370
> [!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)
7572

0 commit comments

Comments
 (0)