This document explains pricing for Batch, including the following:
The costs associated with Batch.
How to filter Cloud Billing reports for Batch costs.
Before you begin
- If you haven't used Batch before, review Get started with Batch and enable Batch by completing the prerequisites for projects and users.
To get the permissions that you need to access and view Cloud Billing reports, ask your administrator to grant you the Billing Account Viewer (
roles/billing.viewer) IAM role on the project. For more information about granting roles, see Manage access.
For more information, see
Permissions required to access reports.
There is no additional cost for using Batch. You only incur charges for any billable Google Cloud resources that are used by Batch jobs.
You can review the costs associated with your Batch jobs by using Cloud Billing reports. For more information, see View Cloud Billing reports in this document.
View and filter Cloud Billing reports
You can view Cloud Billing reports to analyze the costs tied to Batch.
Optionally, you can filter a Cloud Billing report for specific costs by specifying one or more of the labels that are defined for a job's resources:
To help you clarify the Google Cloud resources and costs tied to Batch and specific jobs, Batch automatically applies predefined labels to all of the GPUs, persistent disks, and virtual machine (VM) instances created for a job.
Additionally, you can optionally define custom labels for a job and each of the GPUs, persistent disks, and VMs created for it.
For more information about labels, see Organize resources using labels.
When you filter a Cloud Billing report for Batch costs, the report only displays the costs of the following Google Cloud resources:
The graphics processing units (GPUs) used for a job (if any).
The virtual machine (VM) instances created for a job.
Your Batch jobs might still incur costs that appear on your Cloud Billing report, but do not appear specifically when filtering on Batch labels. For example, Batch filters for a Cloud Billing report do not include costs incurred by Batch jobs for Cloud Logging, storage services such as Cloud Storage and Filestore, and some networking charges.
View and filter a Billing report for Batch costs
To view and filter a Cloud Billing report for the costs of the Compute Engine resources created for your jobs using the Google Cloud console, follow these steps:
View a Cloud Billing report:
In the Google Cloud console, go to the Billing page.
In the Billing account list, select the Cloud Billing account for which you'd like to view reports.
The Overview page opens.
In the Cost management section of the Billing navigation menu, click theReports tab.
The Reports page opens.
Optional: Filter the Cloud Billing report for specific Batch costs using one or more labels:
In the Filters pane, expand Labels, and then specify one of the following labels:
To filter by job name, follow these steps:
In the Key 1 list, select batch-job-id.
In the Value 1 list, select one or more job names.
To filter by job unique ID (UID), follow these steps:
In the Key 1 list, select batch-job-uid.
In the Value 1 list, select one or more UIDs.
To filter by all the GPUs, persistent disks, and VMs created for your Batch jobs, follow these steps:
In the Key 1 list, select batch-node.
The Value 1 list only has one available option, which is automatically selected.
To filter by a customly defined label, follow these steps:
In the Key 1 list, select an existing custom label.
In the Value 1 list, select one or more values.
After you specify a filter, it might take a few seconds for the Cloud Billing report to finish updating.
Optional: To specify more labels to filter a Cloud Billing report, clickAdd label, and then repeat the previous step.
For more information about customizing a Cloud Billing report view, see Manage report view and settings.