Skip to content

Commit 10d3375

Browse files
authored
Merge pull request #282693 from sreekzz/la-migration
New topic Azure Monitor Agent
2 parents 8d68884 + 8a53fec commit 10d3375

File tree

10 files changed

+399
-16
lines changed

10 files changed

+399
-16
lines changed

articles/hdinsight/TOC.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,18 @@ items:
259259
items:
260260
- name: Monitor Azure HDInsight
261261
href: monitor-hdinsight.md
262-
- name: Use Azure Monitor Logs
263-
href: ./hdinsight-hadoop-oms-log-analytics-tutorial.md
264-
- name: Use selective logging
265-
items:
266-
- name: Use selective logging to monitor logs
267-
href: ./selective-logging-analysis.md
262+
- name: Use Azure Monitor logs
263+
items:
264+
- name: New Azure Monitor experience Migration
265+
href: ./hdinsight-hadoop-oms-log-analytics-tutorial.md
266+
- name: Selective Logging
267+
href: ./selective-logging-analysis-azure-logs.md
268+
- name: Use Azure Monitor Agent
269+
items:
270+
- name: Azure Monitor Agent Migration
271+
href: ./azure-monitor-agent.md
272+
- name: Selective Logging
273+
href: ./selective-logging-analysis.md
268274
- name: Use queries with Azure Monitor logs
269275
href: ./hdinsight-hadoop-oms-log-analytics-use-queries.md
270276
- name: Monitor cluster performance
Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
---
2+
title: Azure Monitor Agent (AMA) migration guide for Azure HDInsight clusters
3+
description: Learn how to migrate to Azure Monitor Agent (AMA) in Azure HDInsight clusters.
4+
ms.service: azure-hdinsight
5+
ms.topic: how-to
6+
ms.date: 07/31/2024
7+
---
8+
9+
# Azure Monitor Agent (AMA) migration guide for Azure HDInsight clusters
10+
11+
Azure HDInsight is an enterprise-ready, managed-cluster service. This service runs open-source analytics frameworks like Apache Spark, Hadoop, HBase, and Kafka on Azure. Azure HDInsight integrated with other Azure services to enable customers to better manage their big data analytics applications.
12+
13+
Log Analytics provides a tool in the Azure portal to edit and run log queries. The queries come from data collected by Azure Monitor Logs and interactively analyze their results. Customers can use Log Analytics queries to retrieve records that match specific criteria. They can also use queries to identify trends, analyze patterns, and provide insights into their data.
14+
15+
Azure HDInsight enabled integration with Log Analytics in 2017. HDInsight customers quickly adopted this feature to monitor their HDInsight clusters and query the logs in the clusters. While adoption of this feature increased, customers provided feedback about the integration:
16+
17+
* Customers can't decide which logs to store, and storing all the logs can become expensive.
18+
19+
* Current HDInsight schemas logs don’t follow consistent naming conventions and some tables are repetitive.
20+
21+
* Customers want an out-of-box dashboard to easily monitor the KPI of their HDInsight clusters.
22+
23+
* Customers must jump to Log Analytics to run simple queries.
24+
25+
## Solution overview
26+
27+
Considering customer feedback, the Azure HDInsight team invested in integration with Azure Monitor. This integration enables:
28+
29+
* A new set of tables in customers' Log Analytics workspace. The new tables are delivered through a new Log Analytics pipeline.
30+
31+
* Higher reliability.
32+
33+
* Faster log delivery.
34+
35+
* Resource-based table grouping and default queries.
36+
37+
* Improved security with System Managed Identity for the Azure Monitor agent workspaces.
38+
39+
* Automated [DCR](/azure/azure-monitor/essentials/data-collection-rule-overview) resource creation for the existing tables.
40+
41+
> [!NOTE]
42+
> Azure Monitor Agent (AMA) integration (including DCR and System Identity Authentication) is avaiable all regions where HDInsight is available.
43+
44+
## Benefits of Azure Monitor Agent (AMA) integration
45+
46+
This document outlines the changes to the Azure Monitor integration and provides best-practices for using the new tables.
47+
48+
**Redesigned schemas:** The schema formatting for the new Azure Monitor integration is better organized and easy to understand. There are two-thirds fewer schemas to remove as much ambiguity in the legacy schemas as possible.
49+
50+
**Selective Logging:** There are logs and metrics available through Log Analytics. To help you save on monitoring costs, we're releasing a new selective logging feature. Use this feature to turn on and off different logs and metric sources. With this feature, you need to pay for what you use. For more information, see [Selective Logging](./selective-logging-analysis.md).
51+
52+
**Logs cluster portal integration:** The Logs pane is new to the HDInsight Cluster portal. Anyone with access to the cluster can go to this pane to query any table that the cluster resource sends records to. Users don't need access to the Log Analytics workspace anymore to see the records for a specific cluster resource.
53+
54+
**Insights cluster portal integration:** The Insights pane is also new to the HDInsight Cluster portal. After enabling the new Azure Monitor integration, you can select the Insights pane and an out-of-box logs and metrics dashboard specific to the cluster's type will automatically populate for you. These dashboards revamped from our previous Azure solutions. They give you deep insights into your cluster's performance and health.
55+
56+
## Customer scenarios
57+
58+
The following sections describe how customers can use the new Azure Monitor Agent integration in different scenarios.
59+
60+
* The [Activate a new Azure Monitor Agent integration](./log-analytics-migration.md#activate-a-new-azure-monitor-integration) section outlines how to activate and use the new Azure Monitor integration.
61+
62+
* The [Migrating from Azure Monitor Classic to the new Azure Monitor](./log-analytics-migration.md#migrate-to-the-new-azure-monitor-integration) Agent Integration section includes additional information for users that depend on the older adults Azure Monitor integration.
63+
64+
> [!NOTE]
65+
> Customers using Azure Monitor Classic will no longer work after 31 August, 2024.
66+
> Customers using New Azure Monitor experience (preview) are required to migrate to Azure Monitor Agent (AMA) before Jaunary 31, 2025.
67+
> Clusters with mage **2407260448** with the latest HDInsight API **API Number** will have ability to enable the Azure Monitor Agent integration, and this will be the default setup for customers using image **2407260448**.
68+
69+
### Activate a new Azure Monitor Agent integration
70+
71+
> [!NOTE]
72+
> You must have a Log Analytics workspace created in a subscription you have access to before enabling the new azure monitor agent integration. In case you are migrating from Azure monitor experience to Azure Monitor Agent setup, you can reuse your Log analytics workspace from your existing cluster
73+
>
74+
> You are expected to use the same Azure region for log analytics workspace, and HDInsight cluster for smoother migration.
75+
>
76+
> For more information about how to create a Log Analytics workspace, see [Create a Log Analytics workspace in the Azure portal](/azure/azure-monitor/logs/quick-create-workspace).
77+
78+
### Approach 1: enable Azure monitor agent using Portal
79+
80+
Activate the new integration by going to your cluster's portal page and scrolling down the menu on the left until you reach the Monitoring section.
81+
82+
1. In the Monitoring section, select Monitor integration.
83+
84+
1. Then, select Enable and you can choose the Log Analytics workspace that you want your logs to be sent to.
85+
:::image type="content" source="./media/azure-monitor-agent/monitor-integration.png" alt-text=" Screenshot showing Azure monitor integration." border="true" lightbox="./media/azure-monitor-agent/monitor-integration.png":::
86+
87+
1. Enable Azure Monitor Agent Integration with Log Analytics and select your workspace (existing workspace when you're migrating from your previous image to newer image)
88+
89+
1. Once you confirm the workspace selection, precondition steps commence.
90+
91+
:::image type="content" source="./media/azure-monitor-agent/pre-condition.png" alt-text="Screenshot showing preconditions." border="true" lightbox="./media/azure-monitor-agent/pre-condition.png":::
92+
93+
1. Select Save once precondition steps are complete.
94+
95+
### Access the new tables
96+
97+
There are two ways you can access the new tables.
98+
99+
**Known Issues**
100+
Logs related to Livy jobs are missing some columns in few tables. Reach out to customer support.
101+
102+
#### Approach 1:
103+
104+
1. The first way to access the new tables is through the Log Analytics workspace.
105+
106+
1. Go to the Log Analytics workspace that you selected when you enabled the integration.
107+
108+
1. Scroll down in the menu on the left side of the screen and select Logs. A Logs query editor pops up with a list of all the tables in the workspace.
109+
110+
1. If the tables grouped by Solution, the new HDInsight tables are under the Logs Management section.
111+
112+
1. If you group the tables by Resource Type, the tables are under the HDInsight Clusters section as shown in the image.
113+
114+
> [!NOTE]
115+
>This process describes how the logs were accessed in the old integration. This requires the user to have access to the workspace.
116+
117+
#### Approach 2:
118+
119+
The second way to access the new tables is through Cluster portal access.
120+
121+
1. Navigate to your Cluster's portal page and scroll down the menu on the left side until you see the Monitoring section. In this section, you'll see the Logs pane.
122+
123+
1. Select Logs and a Logs query editor appears. The editor contains all logs that are associated with the cluster resource. You sent the logs to the Log Analytics workspace when you enabled integration. These logs provide resource-based access (RBAC). With RBAC, users who have access to the cluster but not to the workspace can see the logs that are associated with the cluster.
124+
125+
1. For comparison, the following screenshots show the legacy integration workspace view and the new integration workspace view:
126+
127+
### Legacy (Azure Monitor Classic) integration workspace view
128+
129+
:::image type="content" source="./media/azure-monitor-agent/custom-logs.png" alt-text="Screenshot showing custom logs." border="true" lightbox="./media/azure-monitor-agent/custom-logs.png":::
130+
131+
### New (Azure monitor experience / Azure Monitor Agent) integration workspace view
132+
133+
:::image type="content" source="./media/azure-monitor-agent/list-of-tables.png" alt-text="Screenshot showing list of tables." border="true" lightbox="./media/azure-monitor-agent/list-of-tables.png":::
134+
135+
### Use the new tables
136+
137+
Default queries to use with new tables
138+
139+
In your Logs query editor, set the toggle to Queries above the tables list. Make sure that you group the queries by Resource Type and that there's no filter set for a resource type other than HDInsight Clusters. The following image shows how the results look when grouped by Resource Type and filtered for HDInsight Clusters. Just select one and it appears in the Logs query editor. Be sure to read the comments included in the queries, as some require you to enter some information, like your cluster name, for the query to run successfully.
140+
141+
### Create your own queries
142+
143+
You can enter your own queries in the Logs query editor. Queries used on the old tables won't be valid on the new tables as many of the new tables have new, refined schemas. The default queries are great references for shaping queries on the new tables.
144+
145+
### Insights
146+
147+
Insights are cluster-specific visualization dashboards made using [Azure Workbooks](/azure/azure-monitor/visualize/workbooks-overview). These dashboards give you detailed graphs and visualizations of how your cluster is running. The dashboards have sections for each cluster type, YARN, system metrics, and component logs. You can access your cluster's dashboard by visiting your cluster's page in the portal, scrolling down to the Monitoring section, and selecting the Insights pane. The dashboard loads automatically if enabled the new integration. Allow a few seconds for the graphs to load as they query the logs.
148+
149+
:::image type="content" source="./media/azure-monitor-agent/dashboard.png" alt-text="Screenshot showing the dashboard." border="true" lightbox="./media/azure-monitor-agent/dashboard.png":::
150+
151+
### Custom Azure workbooks
152+
153+
You can create your own Azure workbooks with custom graphs and visualizations. In your cluster's portal page, scroll down to the Monitoring section and select the Workbooks pane in the menu on the left. You can either start using a blank template or use one of the templates under the HDInsight Clusters section. There's a template for each cluster type. Templates are useful if you want to save specific customizations that the default HDInsight Insights don't provide. Feel free to send in requests for new features in the HDInsight Insights if you feel they're lacking something.
154+
155+
### Alerts
156+
157+
You can add custom alerts to your clusters and workspaces in the Log query editor. Go to the Logs query editor by selecting the Logs pane from either your cluster or workspace portal. Run a query and then select New Alert Rule as shown in the following screenshot. For more information, read about [configuring alerts](/azure/azure-monitor/alerts/alerts-create-log-alert-rule).
158+
159+
:::image type="content" source="./media/azure-monitor-agent/new-alert-rule.png" alt-text="Screenshot showing new alert rules." border="true" lightbox="./media/azure-monitor-agent/new-alert-rule.png":::
160+
161+
### Migrate to the new Azure Monitor Agent Integration
162+
163+
If you're using the classic Azure Monitor integration, you need to make some adjustments to the new table formats after you switch to the new Azure Monitor integration.
164+
165+
To enable the new Azure Monitor integration, follow the steps outlined in the Activate a new [Azure Monitor Agent integration](./log-analytics-migration.md#activate-a-new-azure-monitor-integration) section.
166+
167+
### Run queries in Log Analytics
168+
169+
Since the new table format is different from the previous one, your queries need to be reworked so you can use our new tables. Once you enable the new Azure Monitor integration, you can browse the tables and schemas to identify the fields that are used in your old queries.
170+
171+
We provide a [mapping table](./log-analytics-migration.md#appendix-table-mapping) between the old table to the new table to help you quickly find the new fields you need to use to migrate your dashboards and queries.
172+
173+
**Default queries:** We created default queries that show how to use the new tables for common situations. The default queries also show what information is available in each table. You can access the default queries by following the instructions in the [Default queries to use with new tables](./log-analytics-migration.md#default-queries-to-use-with-new-tables) section in this article.
174+
175+
### Update dashboards for HDInsight clusters
176+
177+
If you build multiple dashboards to monitor your HDInsight clusters, you need to adjust the query behind the table once you enable the new Azure Monitor integration. The table name or the field name might change in the new integration, but all the information you have in old integration is included.
178+
179+
Refer to the [mapping table](log-analytics-migration.md#appendix-table-mapping) between the old table/schema to the new table/schema to update the query behind the dashboards
180+
181+
182+
### Out-of-box dashboards
183+
184+
We also improved the out-of-box dashboards both at the cluster-level. There's a button on the top right of every graph that allows you to see the underlying query that produces the information. The graph is a great way to familiarize yourself with how the new tables can be queried effectively.
185+
186+
## Release and support timeline
187+
188+
* Classic Azure Monitoring integration isn't unavailable after October 15, 2021. You can't enable classic Azure Monitoring integration after that date.
189+
190+
* Classic Azure Monitoring integration ingestion will not be working after August 31, 2024.
191+
192+
* HDInsight clusters with Azure Monitor integration (preview) will not be supported beyond February 1, 2025.
193+
194+
* Existing Azure Monitor integration(preview) will continue to work, until January 31, 2025. There will be limited support for the Azure Monitor integration(preview).
195+
196+
* If solution requires image change, customers should move to the new integration.
197+
198+
* Microsoft will not patch the Azure Monitor integration (preview) clusters except for critical security issues.
199+
200+
## Appendix: Table mapping
201+
202+
For the log table mappings from the classic Azure Monitor integration to the new one, see [Log table mapping](./monitor-hdinsight-reference.md#log-table-mapping).
203+
204+
## Next steps
205+
206+
* [Query Azure Monitor Logs to monitor HDInsight clusters](hdinsight-hadoop-oms-log-analytics-use-queries.md)
207+
* [Monitor cluster availability with Apache Ambari and Azure Monitor Logs](./hdinsight-cluster-availability.md)
20.1 KB
Loading
46.6 KB
Loading
24.9 KB
Loading
109 KB
Loading
35 KB
Loading
21.4 KB
Loading

0 commit comments

Comments
 (0)