All Products
Search
Document Center

ApsaraMQ for RocketMQ:Cost allocation rules and best practices

Last Updated:Jul 18, 2026

ApsaraMQ for RocketMQ integrates the tag feature of Alibaba Cloud Resource Management. You can tag instances by business department, project team, or other dimensions, and then filter and aggregate bills by tag to quickly allocate costs.

Cost allocation rules

  • Applies to: The pay-as-you-go bills for ApsaraMQ for RocketMQ V4.0 Standard Edition instances and the subscription bills for Platinum Edition instances.

  • Granularity: ApsaraMQ for RocketMQ supports instance-level cost allocation. You can use different instances to isolate workloads from different departments or applications.

  • How it works: ApsaraMQ for RocketMQ uses tag management for cost allocation. You add tags to your instances and can then filter bills by these tags to view cost details across different dimensions.

Best practices for cost allocation

Use cases

A company has numerous ApsaraMQ for RocketMQ resources in a single Alibaba Cloud account, and its finance department needs to allocate costs by cost center, department, and project.

Tag your instances to categorize them by project, department, or other dimensions. You can then filter bills by tag to view costs per category and simplify company-wide cost allocation.

Step 1: Plan your tags

The following sample tagging schema uses cost centers, departments, and projects. Plan your tags based on your business needs.

Business dimension

Tag (key:value)

Cost center

  • costcenter:Beijing

  • costcenter:Shanghai

  • costcenter:Hangzhou

Department

  • department:Order

  • department:Shop

  • department:Item

Project

  • project:project A

  • project:project B

Step 2: Add tags to instances

Using the schema from Step 1: Plan your tags, add the appropriate tags to your ApsaraMQ for RocketMQ instances.

For example, if Instance 1 belongs to the Project A team within the Order department of the Shanghai cost center, you must add the following tags to Instance 1: costcenter:Shanghai, department:Order, and project:project A.

ApsaraMQ for RocketMQ supports the following methods to manage tags:

  • Add tags to an instance in the console: Add tags

  • Add tags to an instance by using the API: TagResources

Step 3: View split bills

Note

After you add tags to an instance, the split bills are updated on the next day (T+1).

  1. Log in to the Alibaba Cloud Expenses and Costs console.

  2. In the navigation pane on the left, choose Cost > Manage Split > Split Bill.

  3. Set filter conditions to view cost information.

    • Example 1: View the costs for the three cost centers.

      In the bill list, in the Instance Tags column, select costcenter.

    • Example 2: View the cost expenditure of the Order department (department:Order) in project A (project:project A).

      In the bill list, in the Instance Tags column, select department: > Order and project: > project A.