Skip to content

Commit 2e62a54

Browse files
committed
Azure Monitor diagnostic extension configure in portal
1 parent f38e471 commit 2e62a54

File tree

9 files changed

+44
-13
lines changed

9 files changed

+44
-13
lines changed

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: 36 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,58 @@ 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).
2229
2330
1. Open the menu for a virtual machine in the Azure portal.
2431
2. Click on **Diagnostic settings** in the **Monitoring** section of the VM menu.
2532
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.
2733

28-
![Diagnostic settings](media/diagnostics-extension-windows-install/diagnostic-settings.png)
34+
![Enable monitoring](media/diagnostics-extension-windows-install/enable-monitoring.png)
35+
36+
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.
37+
38+
![Diagnostic settings](media/diagnostics-extension-windows-install/diagnostic-settings.png)
39+
40+
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.
41+
42+
![Performance counters](media/diagnostics-extension-windows-install/performance-counters.png)
43+
44+
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.
45+
46+
![Logs](media/diagnostics-extension-windows-install/logs.png)
47+
48+
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.
49+
50+
![Crash dumps](media/diagnostics-extension-windows-install/crash-dumps.png)
51+
52+
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.
53+
54+
![Sinks](media/diagnostics-extension-windows-install/sinks.png)
55+
56+
If you have not enabled a System Assigned Identity configured for your 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.
2957

58+
![Managed entity](media/diagnostics-extension-windows-install/managed-entity.png)
3059

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.
60+
9. In the **Agent**, you can change the storage account, set the disk quota, and specifygy whether to collect diagnostic infrastructure logs.
3261

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.|
62+
![Agent](media/diagnostics-extension-windows-install/agent.png)
4163

64+
10. Click **Save** to save the configuration.
4265

4366
> [!NOTE]
4467
> 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.
42.9 KB
Loading
29.8 KB
Loading
64.2 KB
Loading
30.1 KB
Loading
18.6 KB
Loading
29.2 KB
Loading
42.8 KB
Loading

0 commit comments

Comments
 (0)