Tags column in the CSV file.
A label represents a key-value pair you set on a resource when you create or update it. Keys and values can be arbitrary — set the convenient ones for you. On the Usage page, you can filter resources by both keys and values. For example, to check costs by application and team, you can set such labels as application = argo-cd and application = gatekeeper or team = engineering and team = support.
Cost allocation labels are only available for Compute billable resources. Labels assigned to other resources are unavailable in the billing report.
How to set labels on resources
- CLI
- Terraform
In the To make sure that the label has been assigned to the resource successfully, check the resource configuration by using the Output:
create or update command, add the --labels parameter. Example for a virtual machine:get or get-by-name commands. For example:How to view the cost allocation breakdown by labels
You can check the cost allocation breakdown in the web console directly, or you can export usage data:- Web console
- Export
- In the web console, go to Billing → Usage.
-
If you select the Table view:
-
In the Filter by field, select
Label. - In the Labels field, select the keys and values of the needed labels. If you only select a key, all its values are automatically included.
-
In the Filter by field, select
-
If you select the Chart view:
- In the Group by field, select
Label. - In the Labels field, select the keys of the needed labels. All the values of the selected keys are automatically included.
- In the Group by field, select