Tags column.
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 ones convenient 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
- Go SDK
- Python SDK
- JavaScript SDK
- REST API
In the To make sure that you’ve assigned the label to the resource successfully, check the resource configuration by using the The labels should be specified in the
create or update command, add the --labels parameter. Example for a virtual machine:get or get-by-name commands. For example:metadata.labels parameter.How to view the cost allocation breakdown by labels
You can check the cost allocation breakdown in the dashboard or in an exported CSV file.- Dashboard
- 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 values of the selected keys are automatically included.
- In the Group by field, select