Monitor Batch solutions

Azure and the Batch service provide a range of services, tools, and APIs to monitor your Batch solutions. This overview article helps you choose a monitoring approach that fits your needs.

For an overview of the Azure components and services available to monitor Azure resources, see Monitoring Azure applications and resources.

Subscription-level monitoring

At the subscription level, which includes Batch accounts, the Azure activity log collects operational event data in several categories.

For Batch accounts specifically, the activity log collects events related to account creation and deletion and key management.

One way to retrieve events from your activity log is to use the Azure portal. Click All services > Activity Log. Or, query for events using the Azure CLI, PowerShell cmdlets, or the Azure Monitor REST API. You can also export the activity log, or configure activity log alerts.

Batch account-level monitoring

Monitor each Batch account using features of Azure Monitor. Azure Monitor collects metrics and optionally diagnostic logs for resources scoped at the level of a Batch account, such as pools, jobs, and tasks. Collect and consume this data manually or programmatically to monitor activities in your Batch account and to diagnose issues. For details, see Batch metrics, alerts, and logs for diagnostic evaluation and monitoring.

Note

Metrics are available by default in your Batch account without additional configuration, and they have a 30-day rolling history. You must enable diagnostic logging for a Batch account, and you may incur additional costs to store or process diagnostic log data.

Batch resource monitoring

In your Batch applications, use the Batch APIs to monitor or query the status of your resources including jobs, tasks, nodes, and pools. For example:

VM performance counters and application monitoring

Next steps