You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
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).
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
108
73
109
74
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:
110
75
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)
114
76
-[Azure Monitor agent for Linux](/azure/azure-monitor/agents/azure-monitor-agent-manage)
115
77
-[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)
116
81
117
82
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).
118
83
@@ -176,6 +141,24 @@ The following table lists some alert rule triggers for Batch. These alert rules
[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
+
179
162
## Related content
180
163
181
164
- 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