Updated on 2023-07-03 GMT+08:00

Viewing Costs by Cost Tag

You or Huawei Cloud assigns tags to your cloud resources so the resources can be sorted in different ways, for example, by purpose, owner, or environment. You can use cost tags to manage resources and activate them to track your Huawei Cloud costs.

There are two types of tags:

  • Expenditure tags: You can add such tags when creating resources. They will appear on the Cost Tags page 24 hours after their associated resources have generated expenditures.
  • Predefined tags (recommended): You can create such tags on the TMS console. They will appear on the Cost Tags page immediately after being created.

Step 1: Creating Predefined Tags

Access the TMS console. For details, see Creating Predefined Tags.

Step 2: Activating Tags

For details, see Activating Cost Tags. Only the activated tags can be viewed on the Cost Analysis and Budgets pages, and more.

If you activate some tags, they will be used to organize your resource costs generated thereafter. If you want to use tags to analyze the cost data generated before tag activation, export the bill details file and analyze the data based on the Resource Tag field in the file.

Step 3: Adding Tags to Cloud Resources

You can add predefined tags you created to cloud services. For details, see Adding Tags to Cloud Resources.

Step 4: Viewing Costs by Cost Tag

When viewing costs by cost tag, you are advised to summarize cost data based on amortized costs.

  1. Log in to Cost Center.
  2. Choose Cost Analysis.
  3. Set Grouped By to Cost Tags.

    • Group cost data by cost tag.

      In this figure, the cost data for resources with the tag key Project is displayed in the chart.

    • Filter cost data by cost tag.

      In this figure, the chart displays the cost data for resources with the tag key Project being IT and beta, and with Grouped By being Service Type.

    • View cost details by cost tag.

      Click Export to export the cost details file for original costs or amortized costs (file name for amortized costs: % account name %_AmortizedCostDetailByUsage_YYYY-MM). In the file, you can view cost details by cost tag.