|
| 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