Skip to content

Commit 0fc618f

Browse files
author
Jill Grant
authored
Merge pull request #268343 from v-thepet/batch-monitor
Azure Monitor horizontals - Batch
2 parents afc0623 + 343577f commit 0fc618f

File tree

6 files changed

+285
-255
lines changed

6 files changed

+285
-255
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3899,6 +3899,16 @@
38993899
"redirect_url": "/azure/operational-excellence/relocation-key-vault",
39003900
"redirect_document_id": false
39013901
},
3902+
{
3903+
"source_path_from_root": "/articles/batch/monitoring-overview.md",
3904+
"redirect_url": "/azure/batch/monitor-batch",
3905+
"redirect_document_id": false
3906+
},
3907+
{
3908+
"source_path_from_root": "/articles/batch/batch-diagnostics.md",
3909+
"redirect_url": "/azure/batch/monitor-batch",
3910+
"redirect_document_id": false
3911+
},
39023912
{
39033913
"source_path_from_root": "/articles/event-hubs/move-cluster-across-regions.md",
39043914
"redirect_url": "/azure/operational-excellence/relocation-event-hub-cluster",

articles/batch/TOC.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,20 +251,17 @@
251251
href: batch-task-output-files.md
252252
- name: Persist output with File Conventions library
253253
href: batch-task-output-file-conventions.md
254-
- name: Monitor Batch solutions
255-
href: monitoring-overview.md
254+
- name: Monitor
255+
href: monitor-batch.md
256256
items:
257-
- name: Use metrics and diagnostic logs
258-
displayName: alert, monitor
259-
href: batch-diagnostics.md
260257
- name: Monitor with Application Insights
261258
displayName: debug
262259
href: monitor-application-insights.md
263-
- name: Count resources by state
264-
href: batch-get-resource-counts.md
265-
- name: Query resources efficiently
260+
- name: Create efficient query lists
266261
displayName: monitor, queries
267262
href: batch-efficient-list-queries.md
263+
- name: Count resources by state
264+
href: batch-get-resource-counts.md
268265
- name: Use scripting tools
269266
items:
270267
- name: Use Azure PowerShell
@@ -322,7 +319,9 @@
322319
href: /rest/api/batchmanagement/
323320
- name: Resource Manager template
324321
href: /azure/templates/microsoft.batch/allversions
325-
- name: Batch Analytics
322+
- name: Monitoring data reference
323+
href: monitor-batch-reference.md
324+
- name: Batch analytics
326325
href: batch-analytics.md
327326
items:
328327
- name: Pool create event

articles/batch/batch-diagnostics.md

Lines changed: 0 additions & 191 deletions
This file was deleted.
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
---
2+
title: Monitoring data reference for Azure Batch
3+
description: This article contains important reference material you need when you monitor Azure Batch.
4+
ms.date: 03/28/2024
5+
ms.custom: horz-monitor
6+
ms.topic: reference
7+
ms.service: batch
8+
---
9+
10+
# Azure Batch monitoring data reference
11+
12+
<!-- Intro. Required. -->
13+
[!INCLUDE [horz-monitor-ref-intro](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-intro.md)]
14+
15+
See [Monitor Azure Batch](monitor-batch.md) for details on the data you can collect for Azure Batch and how to use it.
16+
17+
[!INCLUDE [horz-monitor-ref-metrics-intro](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-intro.md)]
18+
19+
### Supported metrics for Microsoft.Batch/batchaccounts
20+
The following table lists the metrics available for the Microsoft.Batch/batchaccounts resource type.
21+
[!INCLUDE [horz-monitor-ref-metrics-tableheader](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-tableheader.md)]
22+
[!INCLUDE [Microsoft.Batch/batchaccounts](~/azure-reference-other-repo/azure-monitor-ref/supported-metrics/includes/microsoft-batch-batchaccounts-metrics-include.md)]
23+
24+
[!INCLUDE [horz-monitor-ref-metrics-dimensions-intro](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions-intro.md)]
25+
26+
[!INCLUDE [horz-monitor-ref-metrics-dimensions](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-metrics-dimensions.md)]
27+
28+
- poolId
29+
- jobId
30+
31+
[!INCLUDE [horz-monitor-ref-resource-logs](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-resource-logs.md)]
32+
33+
### Supported resource logs for Microsoft.Batch/batchaccounts
34+
[!INCLUDE [Microsoft.Batch/batchaccounts](~/azure-reference-other-repo/azure-monitor-ref/supported-logs/includes/microsoft-batch-batchaccounts-logs-include.md)]
35+
36+
### Service log events
37+
38+
Batch service logs contain events emitted by the Batch service during the lifetime of an individual Batch resource, such as a pool or task. The Batch service emits the following log events:
39+
40+
- [Pool create](batch-pool-create-event.md)
41+
- [Pool delete start](batch-pool-delete-start-event.md)
42+
- [Pool delete complete](batch-pool-delete-complete-event.md)
43+
- [Pool resize start](batch-pool-resize-start-event.md)
44+
- [Pool resize complete](batch-pool-resize-complete-event.md)
45+
- [Pool autoscale](batch-pool-autoscale-event.md)
46+
- [Task start](batch-task-start-event.md)
47+
- [Task complete](batch-task-complete-event.md)
48+
- [Task fail](batch-task-fail-event.md)
49+
- [Task schedule fail](batch-task-schedule-fail-event.md)
50+
51+
Each event emitted by Batch is logged in JSON format. The following example shows the body of a sample **pool create event**:
52+
53+
```json
54+
{
55+
"id": "myPool1",
56+
"displayName": "Production Pool",
57+
"vmSize": "Standard_F1s",
58+
"imageType": "VirtualMachineConfiguration",
59+
"cloudServiceConfiguration": {
60+
"osFamily": "3",
61+
"targetOsVersion": "*"
62+
},
63+
"networkConfiguration": {
64+
"subnetId": " "
65+
},
66+
"virtualMachineConfiguration": {
67+
"imageReference": {
68+
"publisher": " ",
69+
"offer": " ",
70+
"sku": " ",
71+
"version": " "
72+
},
73+
"nodeAgentId": " "
74+
},
75+
"resizeTimeout": "300000",
76+
"targetDedicatedNodes": 2,
77+
"targetLowPriorityNodes": 2,
78+
"taskSlotsPerNode": 1,
79+
"vmFillType": "Spread",
80+
"enableAutoScale": false,
81+
"enableInterNodeCommunication": false,
82+
"isAutoPool": false
83+
}
84+
```
85+
86+
[!INCLUDE [horz-monitor-ref-logs-tables](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-logs-tables.md)]
87+
### Batch Accounts
88+
microsoft.batch/batchaccounts
89+
90+
- [AzureActivity](/azure/azure-monitor/reference/tables/AzureActivity#columns)
91+
- [AzureMetrics](/azure/azure-monitor/reference/tables/AzureMetrics#columns)
92+
- [AzureDiagnostics](/azure/azure-monitor/reference/tables/AzureDiagnostics#columns)
93+
94+
[!INCLUDE [horz-monitor-ref-activity-log](~/reusable-content/ce-skilling/azure/includes/azure-monitor/horizontals/horz-monitor-ref-activity-log.md)]
95+
- [Microsoft.Batch resource provider operations](/azure/role-based-access-control/permissions/compute#microsoftbatch)
96+
97+
## Related content
98+
99+
- See [Monitor Batch](monitor-batch.md) for a description of monitoring Batch.
100+
- See [Monitor Azure resources with Azure Monitor](/azure/azure-monitor/essentials/monitor-azure-resource) for details on monitoring Azure resources.
101+
- Learn about the [Batch APIs and tools](batch-apis-tools.md) available for building Batch solutions.

0 commit comments

Comments
 (0)