Skip to content

Commit 343577f

Browse files
committed
review changes
1 parent 4f1aac3 commit 343577f

File tree

2 files changed

+23
-40
lines changed

2 files changed

+23
-40
lines changed

articles/batch/monitor-batch-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Monitoring data reference for Azure Batch
33
description: This article contains important reference material you need when you monitor Azure Batch.
4-
ms.date: 03/21/2024
4+
ms.date: 03/28/2024
55
ms.custom: horz-monitor
66
ms.topic: reference
77
ms.service: batch

articles/batch/monitor-batch.md

Lines changed: 22 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Monitor Azure Batch
33
description: Start here to learn how to monitor Azure Batch.
4-
ms.date: 03/21/2024
4+
ms.date: 03/28/2024
55
ms.custom: horz-monitor
66
ms.topic: conceptual
77
ms.service: batch
@@ -11,41 +11,6 @@ ms.service: batch
1111

1212
[!INCLUDE [horz-monitor-intro](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-intro.md)]
1313

14-
## Batch Explorer
15-
16-
[Batch Explorer](https://github.com/Azure/BatchExplorer) is a free, rich-featured, standalone client tool to help create, debug, and monitor Azure Batch applications. You can download an [installation package](https://azure.github.io/BatchExplorer/) for Mac, Linux, or Windows. Optionally, use [Azure Batch Insights](https://github.com/Azure/batch-insights) with Batch Explorer to get system statistics for your Batch nodes, such as virtual machine (VM) performance counters.
17-
18-
## Batch APIs
19-
20-
In your Batch applications, you can use the [Batch .NET library](/dotnet/api/microsoft.azure.batch) to monitor or query the status of your resources including jobs, tasks, nodes, and pools. For example:
21-
22-
- Monitor the [task state](/rest/api/batchservice/task/list#taskstate)
23-
- Monitor the [node state](/rest/api/batchservice/computenode/list#computenodestate)
24-
- Monitor the [pool state](/rest/api/batchservice/pool/get#poolstate)
25-
- Monitor [pool usage in the account](/rest/api/batchservice/pool/listusagemetrics)
26-
- Count [pool nodes by state](/rest/api/batchservice/account/listpoolnodecounts)
27-
28-
### Create efficient list queries
29-
30-
Most Azure Batch applications monitor or do other operations that query the Batch service. You can use the Batch APIs to create list queries for Batch jobs, tasks, compute nodes, and other resources.
31-
32-
Reducing the amount of data that the Batch service returns for queries improves your application's performance. For more information about how to filter list queries, see [Create queries to list Batch resources efficiently](batch-efficient-list-queries.md).
33-
34-
### Count tasks and nodes
35-
36-
Instead of potentially time-consuming list queries that return detailed information about large collections of tasks or nodes, you can use the [Get Task Counts](/rest/api/batchservice/job/gettaskcounts) and [List Pool Node Counts](/rest/api/batchservice/account/listpoolnodecounts) operations to get counts for Batch tasks and compute nodes. For more information, see [Monitor Batch solutions by counting tasks and nodes by state](batch-get-resource-counts.md). At times, the numbers returned by these operations might not be up to date. If you need to be sure that a count is accurate, use list queries to count these resources.
37-
38-
[!INCLUDE [horz-monitor-insights](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-insights.md)]
39-
40-
### Application Insights
41-
42-
You can integrate Application Insights with your Azure Batch applications to gain deep insights into behaviors and investigate issues in near-real time. Application Insights lets you monitor performance counters and exceptions from compute node VMs and retrieve custom information for the tasks that run on the VMs. You can use Application Insights to instrument your code with custom metrics and tracing.
43-
44-
See [Monitor and debug an Azure Batch .NET application with Application Insights](monitor-application-insights.md) and accompanying [code sample](https://github.com/Azure/azure-batch-samples/tree/master/CSharp/ArticleProjects/ApplicationInsights) for a detailed walkthrough of how to add Application Insights to a Batch .NET solution, instrument application code, monitor the application in the Azure portal, and build custom dashboards.
45-
46-
> [!NOTE]
47-
> You might incur costs to use Application Insights. See the [pricing information](https://azure.microsoft.com/pricing/details/application-insights).
48-
4914
[!INCLUDE [horz-monitor-resource-types](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-resource-types.md)]
5015

5116
For more information about the resource types for Batch, see [Batch monitoring data reference](monitor-batch-reference.md).
@@ -108,11 +73,11 @@ The following screenshot shows an example diagnostic setting that sends **allLog
10873

10974
When you create an Azure Batch pool, you can install any of the following monitoring-related extensions on the compute nodes to collect and analyze data:
11075

111-
- [Azure Monitor Logs analytics and monitoring extension for Linux](/azure/virtual-machines/extensions/oms-linux)
112-
- [Azure Monitor Logs analytics and monitoring extension for Windows](/azure/virtual-machines/extensions/oms-windows)
113-
- [Azure Diagnostics extension for Windows VMs](/azure/virtual-machines/windows/extensions-diagnostics)
11476
- [Azure Monitor agent for Linux](/azure/azure-monitor/agents/azure-monitor-agent-manage)
11577
- [Azure Monitor agent for Windows](/azure/azure-monitor/agents/azure-monitor-agent-manage)
78+
- [Azure Diagnostics extension for Windows VMs](/azure/virtual-machines/windows/extensions-diagnostics)
79+
- [Azure Monitor Logs analytics and monitoring extension for Linux](/azure/virtual-machines/extensions/oms-linux)
80+
- [Azure Monitor Logs analytics and monitoring extension for Windows](/azure/virtual-machines/extensions/oms-windows)
11681

11782
For a comparison of the different extensions and agents and the data they collect, see [Compare agents](/azure/azure-monitor/agents/agents-overview#compare-to-legacy-agents).
11883

@@ -176,6 +141,24 @@ The following table lists some alert rule triggers for Batch. These alert rules
176141

177142
[!INCLUDE [horz-monitor-advisor-recommendations](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-advisor-recommendations.md)]
178143

144+
## Other Batch monitoring options
145+
146+
[Batch Explorer](https://github.com/Azure/BatchExplorer) is a free, rich-featured, standalone client tool to help create, debug, and monitor Azure Batch applications. You can use [Azure Batch Insights](https://github.com/Azure/batch-insights) with Batch Explorer to get system statistics for your Batch nodes, such as virtual machine (VM) performance counters.
147+
148+
In your Batch applications, you can use the [Batch .NET library](/dotnet/api/microsoft.azure.batch) to monitor or query the status of your resources including jobs, tasks, nodes, and pools. For example:
149+
150+
- Monitor the [task state](/rest/api/batchservice/task/list#taskstate).
151+
- Monitor the [node state](/rest/api/batchservice/computenode/list#computenodestate).
152+
- Monitor the [pool state](/rest/api/batchservice/pool/get#poolstate).
153+
- Monitor [pool usage in the account](/rest/api/batchservice/pool/listusagemetrics).
154+
- Count [pool nodes by state](/rest/api/batchservice/account/listpoolnodecounts).
155+
156+
You can use the Batch APIs to create list queries for Batch jobs, tasks, compute nodes, and other resources. For more information about how to filter list queries, see [Create queries to list Batch resources efficiently](batch-efficient-list-queries.md).
157+
158+
Or, instead of potentially time-consuming list queries that return detailed information about large collections of tasks or nodes, you can use the [Get Task Counts](/rest/api/batchservice/job/gettaskcounts) and [List Pool Node Counts](/rest/api/batchservice/account/listpoolnodecounts) operations to get counts for Batch tasks and compute nodes. For more information, see [Monitor Batch solutions by counting tasks and nodes by state](batch-get-resource-counts.md).
159+
160+
You can integrate Application Insights with your Azure Batch applications to instrument your code with custom metrics and tracing. For a detailed walkthrough of how to add Application Insights to a Batch .NET solution, instrument application code, monitor the application in the Azure portal, and build custom dashboards, see [Monitor and debug an Azure Batch .NET application with Application Insights](monitor-application-insights.md) and accompanying [code sample](https://github.com/Azure/azure-batch-samples/tree/master/CSharp/ArticleProjects/ApplicationInsights).
161+
179162
## Related content
180163

181164
- See [Batch monitoring data reference](monitor-batch-reference.md) for a reference of the metrics, logs, and other important values created for Batch.

0 commit comments

Comments
 (0)