After you add tags to instances in Hologres, you can view the billing details and costs of instances by tag in the Expenses and Costs console. This topic describes how to use tags to split bills of Hologres instances.
Background information
Alibaba Cloud allows you to use tags and cost centers to split bills of cloud resources among project teams or business departments. You can sort cost relationships and establish a cost structure for the resources to facilitate cost management on the cloud.
You can perform the following steps to split bills of Hologres instances.
Step 1: Plan tags
You can add different tags to Hologres instances that belong to different business domains or departments.
For example, your enterprise has three departments: Data R&D Department, Business Department 1, and Business Department 2. Data R&D Department uses Hologres to write and process data, Business Department 1 uses Hologres for Online Analytical Processing (OLAP) analysis, and Business Department 2 uses Hologres for online services. The three departments share an Alibaba Cloud account. A group of Hologres primary and secondary instances belong to the Alibaba Cloud account. The primary instance A belongs to Data R&D Department, the secondary instances B and C belong to Business Department 1, and the secondary instance D belongs to Business Department 2. The following table describes the sample tags that you plan to add to different instances.
Hologres instance name | Business department | Tag |
Instance A | Data R&D Department | department:Dev |
Instance B | Business Department 1 | department:OLAP |
Instance C | Business Department 1 | department:OLAP |
Instance D | Business Department 2 | department:Serving |
Step 2: Add tags to instances
Go to the Instances page in the Hologres console. In the top navigation bar, select a region from the drop-down list. Then, click the ID of the desired instance.
In the Basic Information section of the Instance Details page, click next to Tag.
In the Edit Tag dialog box, select a value for the Select Tags parameter.
If you want to add an existing tag to the instance, click Existing Tags and select a tag from the drop-down list.
If you want to add a new tag to the instance, click Create Tag, enter a key such as
department
and a value such asDev
, and then click Create.
Click OK.
Step 3: View split bills
Split bills
Go to the Split Bill page in the Expenses and Costs console.
NoteBefore you use the split bill feature for the first time, you must enable the feature. You can view split bills of an instance one day after you add a tag to the instance. For more information, see Enable features and Split Bill.
If you enable the cost allocation tag feature and specify tags as cost allocation tags, data can be filtered based on the tags. In this case, the specified cost allocation tags are available on pages such as the Cost Analysis page and Bill Details page in the Expenses and Costs console. If you enable the cost allocation tag feature but do not specify tags as cost allocation tags, no tags are available on the pages in the Expenses and Costs console.
On the Split Bill page, specify search conditions to query the bills.
To view the bills of the instance with the department:Dev tag, perform the following steps:
Click the icon in the Instance Tag column.
Select the
department:Dev
tag in the popover that appears.Click OK.
Optional. In the upper-right corner of the bill list, click Export Billing Overview (CSV) to export the bill list in the CSV format based on the tag.
Cost analysis
On the Cost Analysis page in the Expenses and Costs console, specify tag filters to view costs. You can also export the cost list in the CSV format.
Go to the Cost Analysis page in the Expenses and Costs console.
NoteBefore you analyze costs for the first time, you must enable the feature. You can view costs of an instance one day after you add a tag to the instance. For more information, see Enable features and Split Bill.
On the Cost Analysis page, specify search conditions to query the costs.
To view the costs of the instance with the department:Dev tag, perform the following steps:
In the Filters section on the right, click Tag.
In the popover that appears, select the
department:Dev
tag.Click Apply.
Optional. In the upper-right corner of the cost list, click Export to export the cost list in the CSV format based on the tag.