Skip to content

Commit c646c68

Browse files
authored
Merge pull request #113446 from bwren/am-diagnostic-metric
Azure Monitor diagnostic extension configure in portal
2 parents 704506e + a91082a commit c646c68

File tree

13 files changed

+69
-33
lines changed

13 files changed

+69
-33
lines changed

articles/azure-monitor/faq.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ Many resource providers are automatically registered, but you may need to manual
9393
### Why am I am getting no access error message when opening Log Analytics from a VM?
9494
To view VM Logs, you need to be granted with read permission to the workspaces that stores the VM logs. In these cases, your administrator must grant you with to permissions in Azure.
9595

96+
## Metrics
97+
98+
### Why are metrics from the guest OS of my Azure virtual machine not showing up in Metrics explorer?
99+
[Platform metrics](insights/monitor-azure-resource.md#monitoring-data) are collected automatically for Azure resources. You must perform some configuration though to collect metrics from the guest OS of a virtual machine. For a Windows VM, install the diagnostic extension and configure the Azure Monitor sink as described in [Install and configure Windows Azure diagnostics extension (WAD)](platform/diagnostics-extension-windows-install.md). For Linux, install the Telegraf agent as described in [Collect custom metrics for a Linux VM with the InfluxData Telegraf agent](platform/collect-custom-metrics-linux-telegraf.md).
100+
96101
## Alerts
97102

98103
### What is an alert in Azure Monitor?
-83 KB
Loading

articles/azure-monitor/insights/monitor-vm-azure.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.subservice: logs
66
ms.topic: conceptual
77
author: bwren
88
ms.author: bwren
9-
ms.date: 03/17/2020
9+
ms.date: 05/05/2020
1010

1111
---
1212

@@ -20,7 +20,7 @@ This article describes how to use Azure Monitor to collect and analyze monitorin
2020
## Differences from other Azure resources
2121
[Monitoring Azure resources with Azure Monitor](monitor-azure-resource.md) describes the monitoring data generated by Azure resources and how you can use the features of Azure Monitor to analyze and alert on this data. You can collect and act on the same monitoring data from Azure virtual machines with the following differences:
2222

23-
- [Platform metrics](../platform/data-platform-metrics.md) are collected automatically for virtual machines but only for the [virtual machine host](#monitoring-data). You need an agent to collect performance data from the guest operating system.
23+
- [Platform metrics](../platform/data-platform-metrics.md) are collected automatically for virtual machines but only for the [virtual machine host](#monitoring-data). You need an agent to collect performance data from the guest operating system.
2424
- Virtual machines don't generate [resource logs](../platform/platform-logs-overview.md) which provide insight into operations that were performed within an Azure resource. You use an agent to collect log data from the guest operating system.
2525
- You can create [diagnostic settings](../platform/diagnostic-settings.md) for a virtual machine to send platform metrics to other destinations such as storage and event hubs, but you can't configure these diagnostic settings in the Azure portal.
2626

@@ -117,7 +117,6 @@ az monitor diagnostic-settings create \
117117
--resource /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/my-resource-group/providers/Microsoft.Compute/virtualMachines/my-vm \
118118
--metrics '[{"category": "AllMetrics","enabled": true}]' \
119119
--workspace /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourcegroups/my-resource-group/providers/microsoft.operationalinsights/workspaces/my-workspace
120-
121120
```
122121

123122
## Monitoring in the Azure portal
@@ -145,12 +144,13 @@ Once you configure collection of monitoring data for a virtual machine, you have
145144
## Analyzing metric data
146145
You can analyze metrics for virtual machines using metrics explorer by opening **Metrics** from the virtual machine's menu. See [Getting started with Azure Metrics Explorer](../platform/metrics-getting-started.md) for details on using this tool.
147146

148-
There are two namespaces used by virtual machines for metrics:
147+
There are three namespaces used by virtual machines for metrics:
149148

150-
| Namespace | Description |
151-
|:---|:---|
152-
| Virtual Machine Host | Host metrics automatically collected for all Azure virtual machines. Detailed list of metrics at [Microsoft.Compute/virtualMachines](../platform/metrics-supported.md#microsoftcomputevirtualmachines). |
153-
| Virtual Machine Guest | Guest operating system metrics collected from virtual machines with diagnostics extension installed and configured to send to Azure Monitor sink. |
149+
| Namespace | Description | Requirement |
150+
|:---|:---|:---|
151+
| Virtual Machine Host | Host metrics automatically collected for all Azure virtual machines. Detailed list of metrics at [Microsoft.Compute/virtualMachines](../platform/metrics-supported.md#microsoftcomputevirtualmachines). | Collected automatically with no configuration required. |
152+
| Guest (classic) | Limited set of guest operating system and application performance data. Available in metrics explorer but not other Azure Monitor features such as metric alerts. | [Diagnostic extension](../platform/diagnostics-extension-overview.md) installed. Data is read from Azure storage. |
153+
| Virtual Machine Guest | Guest operating system and application performance data available to all Azure Monitor features using metrics. | For Windows, [diagnostic extension installed](../platform/diagnostics-extension-overview.md) installed with Azure Monitor sink enabled. For Linux, [Telegraf agent installed](../platform/collect-custom-metrics-linux-telegraf.md). |
154154

155155
![Metrics](media/monitor-vm-azure/metrics.png)
156156

articles/azure-monitor/platform/collect-custom-metrics-guestos-resource-manager-vm.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
---
2-
title: Collect Windows VM metrics in Azure Monitor with template
3-
description: Send guest OS metrics to the Azure Monitor metric store using a Resource Manager template for a Windows virtual machine
2+
title: Collect Windows VM metrics in Azure Monitor with template
3+
description: Send guest OS metrics to the Azure Monitor metric database store by using a Resource Manager template for a Windows virtual machine
44
author: anirudhcavale
55
services: azure-monitor
66

77
ms.topic: conceptual
8-
ms.date: 09/24/2018
9-
ms.author: ancav
8+
ms.date: 05/04/2020
9+
ms.author: bwren
1010
ms.subservice: metrics
1111
---
12-
# Send Guest OS metrics to the Azure Monitor metric store using a Resource Manager template for a Windows virtual machine
12+
# Send guest OS metrics to the Azure Monitor metric store by using an Azure Resource Manager template for a Windows virtual machine
13+
Performance data from the guest OS of Azure virtual machines is not collected automatically like other [platform metrics](../insights/monitor-azure-resource.md#monitoring-data). Install the Azure Monitor [diagnostics extension](diagnostics-extension-overview.md) to collect guest OS metrics into the metrics database so it can be used with all features of Azure Monitor Metrics, including near-real time alerting, charting, routing, and access from a REST API. This article describes the process for sending Guest OS performance metrics for a Windows virtual machine to the metrics database using a Resource Manager template.
1314

14-
[!INCLUDE [updated-for-az](../../../includes/updated-for-az.md)]
15-
16-
By using the Azure Monitor [Diagnostics extension](diagnostics-extension-overview.md), you can collect metrics and logs from the guest operating system (Guest OS) that's running as part of a virtual machine, cloud service, or Service Fabric cluster. The extension can send telemetry to [many different locations.](https://docs.microsoft.com/azure/monitoring/monitoring-data-collection?toc=/azure/azure-monitor/toc.json)
17-
18-
This article describes the process for sending Guest OS performance metrics for a Windows virtual machine to the Azure Monitor data store. Starting with Diagnostics version 1.11, you can write metrics directly to the Azure Monitor metrics store, where standard platform metrics are already collected.
15+
> [!NOTE]
16+
> For details on configuring the diagnostics extension to collect guest OS metrics using the Azure portal, see [Install and configure Windows Azure diagnostics extension (WAD)](diagnostics-extension-windows-install.md).
1917
20-
Storing them in this location allows you to access the same actions for platform metrics. Actions include near-real time alerting, charting, routing, and access from a REST API and more. In the past, the Diagnostics extension wrote to Azure Storage, but not to the Azure Monitor data store.
2118

2219
If you're new to Resource Manager templates, learn about [template deployments](../../azure-resource-manager/management/overview.md) and their structure and syntax.
2320

articles/azure-monitor/platform/diagnostics-extension-overview.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ Azure Diagnostics extension is an [agent in Azure Monitor](agents-overview.md) t
1515
> [!NOTE]
1616
> Azure Diagnostics extension is one of the agents available to collect monitoring data from the guest operating system of compute resources. See [Overview of the Azure Monitor agents ](agents-overview.md) for a description of the different agents and guidance on selecting the appropriate agents for your requirements.
1717
18+
## Primary scenarios
19+
The primary scenarios addressed by the diagnostics extension are:
20+
21+
- Collect guest metrics into Azure Monitor Metrics.
22+
- Send guest logs and metrics to Azure storage for archiving.
23+
- Send guest logs and metrics to Azure event hubs to send outside of Azure.
24+
25+
1826
## Comparison to Log Analytics agent
1927
The Log Analytics agent in Azure Monitor can also be used to collect monitoring data from the guest operating system of virtual machines. You may choose to use either or both depending on your requirements. See [Overview of the Azure Monitor agents](agents-overview.md) for a detailed comparison of the Azure Monitor agents.
2028

articles/azure-monitor/platform/diagnostics-extension-windows-install.md

Lines changed: 40 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,60 @@ ms.date: 02/17/2020
1010
ms.author: bwren
1111
---
1212
# Install and configure Windows Azure diagnostics extension (WAD)
13-
Azure diagnostics extension is an agent in Azure Monitor that collects monitoring data from the guest operating system and workloads of Azure virtual machines and other compute resources. This article provides details on installing and configuring the Windows diagnostics extension and a description of how the data is stored in and Azure Storage account.
13+
[Azure diagnostics extension](diagnostics-extension-overview.md) is an agent in Azure Monitor that collects monitoring data from the guest operating system and workloads of Azure virtual machines and other compute resources. This article provides details on installing and configuring the Windows diagnostics extension and a description of how the data is stored in and Azure Storage account.
1414

1515
The diagnostics extension is implemented as a [virtual machine extension](../../virtual-machines/extensions/overview.md) in Azure, so it supports the same installation options using Resource Manager templates, PowerShell, and CLI. See [Virtual machine extensions and features for Windows](../../virtual-machines/extensions/features-windows.md) for details on installing and maintaining virtual machine extensions.
1616

17+
## Overview
18+
When you configure Windows Azure the diagnostics extension, you must specify a storage account where all specified data will be sent. You can optionally add one for more *data sinks* to send the data to different locations.
19+
20+
- Azure Monitor sink - Send guest performance data to Azure Monitor Metrics.
21+
- Event hub sink - Send guest performance and log data to Azure event hubs to forward outside of Azure. This sink cannot be configured in the Azure portal.
22+
23+
1724
## Install with Azure portal
1825
You can install and configure the diagnostics extension on an individual virtual machine in the Azure portal which provides you an interface as opposed to working directly with the configuration. When you enable the diagnostics extension, it will automatically use a default configuration with the most common performance counters and events. You can modify this default configuration according to your specific requirements.
1926

2027
> [!NOTE]
21-
> There are diagnostics extension settings you cannot configure using the Azure portal including sending data to Azure Event Hubs. You must use one of the other configuration methods for these settings.
28+
> The following describe the most common settings for the diagnostics extension. For details on all of the configuration options, see [Windows diagnostics extension schema](diagnostics-extension-schema-windows.md).
2229
2330
1. Open the menu for a virtual machine in the Azure portal.
31+
2432
2. Click on **Diagnostic settings** in the **Monitoring** section of the VM menu.
33+
2534
3. Click **Enable guest-level monitoring** if the diagnostics extension hasn't already been enabled.
26-
4. A new Azure Storage account will be created for the VM with the name will be based on the name of the resource group for the VM. You can attach the VM to another storage account by selecting the **Agent** tab.
2735

28-
![Diagnostic settings](media/diagnostics-extension-windows-install/diagnostic-settings.png)
36+
![Enable monitoring](media/diagnostics-extension-windows-install/enable-monitoring.png)
37+
38+
4. A new Azure Storage account will be created for the VM with the name will be based on the name of the resource group for the VM, and a default set of guest performance counters and logs will be selected.
39+
40+
![Diagnostic settings](media/diagnostics-extension-windows-install/diagnostic-settings.png)
41+
42+
5. In the **Performance counters** tab, select the guest metrics you would like to collect from this virtual machine. Use the **Custom** setting for more advanced selection.
2943

44+
![Performance counters](media/diagnostics-extension-windows-install/performance-counters.png)
3045

31-
You can modify the default configuration once the diagnostics extension has been enabled. The following table describes the options you can modify in the different tabs. Some options have a **Custom** command which allows you to specify more detailed configuration; see [Windows diagnostics extension schema](diagnostics-extension-schema-windows.md) for details on different settings.
46+
6. In the **Logs** tab, select the logs to collect from the virtual machine. Logs can be sent to storage or event hubs, but not to Azure Monitor. Use the [Log Analytics agent](log-analytics-agent.md) to collect guest logs to Azure Monitor.
3247

33-
| Tab | Description |
34-
|:---|:---|
35-
| Overview | Displays the current configuration with links to the other tabs. |
36-
| Performance counters | Select the performance counters to collect and the sample rate for each. |
37-
| Logs | Select the log data to collect. This includes Windows Event logs, IIS logs, .NET application logs and ETW events. |
38-
| Crash dumps | Enable crash dump for different processes. |
39-
| Sinks | Enable data sinks to send data to destinations in addition to Azure Storage.<br>Azure Monitor - Sends performance data to Azure Monitor Metrics.<br>Application Insights - Send data to an Application Insights application. |
40-
| Agent | Modify the following configuration for the agent:<br>- Change the storage account.<br>- Specify the maximum local disk used for the agent.<br>- Configure logs for the health of the agent itself.|
48+
![Logs](media/diagnostics-extension-windows-install/logs.png)
4149

50+
7. In the **Crash dumps** tab, specify any processes to collect memory dumps after a crash. The data will be written to the storage account for the diagnostic setting, and you can optionally specify a blob container.
51+
52+
![Crash dumps](media/diagnostics-extension-windows-install/crash-dumps.png)
53+
54+
8. In the **Sinks** tab, specify whether to send the data to locations other than Azure storage. If you select **Azure Monitor**, guest performance data will be sent to Azure Monitor Metrics. You cannot configure the event hubs sink using the Azure portal.
55+
56+
![Sinks](media/diagnostics-extension-windows-install/sinks.png)
57+
58+
If you have not enabled a System Assigned Identity configured for your virtual machine, you may see the below warning when you save a configuration with the Azure Monitor sink. Click on the banner to enable the system assigned identity.
59+
60+
![Managed entity](media/diagnostics-extension-windows-install/managed-entity.png)
61+
62+
9. In the **Agent**, you can change the storage account, set the disk quota, and specify whether to collect diagnostic infrastructure logs.
63+
64+
![Agent](media/diagnostics-extension-windows-install/agent.png)
65+
66+
10. Click **Save** to save the configuration.
4267

4368
> [!NOTE]
4469
> While the configuration for diagnostics extension can be formatted in either JSON or XML, any configuration done in the Azure portal will always be stored as JSON. If you use XML with another configuration method and then change your configuration with the Azure portal, the settings will be changed to JSON.
@@ -68,6 +93,7 @@ The protected settings are defined in the [PrivateConfig element](diagnostics-ex
6893
"storageAccountEndPoint": "https://mystorageaccount.blob.core.windows.net"
6994
}
7095
```
96+
7197
The public settings are defined in the [Public element](diagnostics-extension-schema-windows.md#publicconfig-element) of the configuration schema. Following is a minimal example of a public settings file that enables collection of diagnostic infrastructure logs, a single performance counter, and a single event log. See [Example configuration](diagnostics-extension-schema-windows.md#publicconfig-element) for complete details of the public settings.
7298

7399
```JSON
@@ -178,5 +204,5 @@ Several tools are available to view the data after it is transferred to storage.
178204
* [Microsoft Azure Storage Explorer](../../vs-azure-tools-storage-manage-with-storage-explorer.md) is a standalone app that enables you to easily work with Azure Storage data on Windows, OSX, and Linux.
179205
* [Azure Management Studio](https://www.cerebrata.com/products/azure-management-studio/introduction) includes Azure Diagnostics Manager which allows you to view, download and manage the diagnostics data collected by the applications running on Azure.
180206

181-
## Next Steps
207+
## Next steps
182208
- See [Send data from Windows Azure diagnostics extension to Event Hubs](diagnostics-extension-stream-event-hubs.md) for details on forwarding monitoring data to Azure Event Hubs.
42.9 KB
Loading
29.8 KB
Loading
64.2 KB
Loading
30.1 KB
Loading

0 commit comments

Comments
 (0)