Configuration Manual for Collector "Huawei Cloud - Cloud Billing (Instance Level)"
Before reading this article, please read the following first:
Before using this collector, you must install the 'Integration Core Package' and its corresponding third-party dependency packages
To ensure data integrity, the billing date collected is the day before the current date. For example: 2022-07-03 00:00:00 ~ 23:59:59 during which all data collected will be from 2022-07-02
Current billing data collection only statistics for some products. Product abbreviation list: dcs, dds, ecs, elb, obs, rds, vpc
1. Configuration Structure
This collector does not require configuration.
2. Data Reporting Format
After normal data synchronization, you can view the data in the "Cloud Bill Explorer" of Guance and TrueWatch.
An example of reported data is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Fields in tags and fields may change with subsequent updates.
3. Field Description
Reported Fields | API Returned Fields | Meaning of API Fields | Notes | |
---|---|---|---|---|
Billing ID | billing_id |
Unique billing ID | ||
Product Code | product_code |
cloud_service_type |
Cloud service type code | Extracted from cloud_service_type For example: "hws.service.type.vpc" -> "vpc" |
Product Name | product_name |
cloud_service_type_name |
Cloud service type name | |
Official Price | official_amount |
official_amount |
Official price, Huawei Cloud product sales price on the official website without applied business discounts or promotional discounts. | Sum of official_amount |
Paid Amount | amount |
amount |
The amount users need to pay after enjoying discounts on cloud services, including cash coupons, stored value cards, and credit coupons, accurate to two decimal places. | Sum of amount |
Cash Payment | cash_amount |
cash_amount |
Cash payment amount | |
Credit Payment | credit_amount |
credit_amount |
Credit payment amount | |
Credit Coupon | coupon_amount |
coupon_amount |
Credit coupon payment amount | |
Cash Coupon | flexipurchase_coupon_amount |
flexipurchase_coupon_amount |
Cash coupon payment amount | |
Bonus Payment | bonus_amount |
bonus_amount |
Bonus payment amount (used for rewards not fully utilized by online customers) | |
Stored Card | stored_card_amount |
stored_card_amount |
Stored card payment amount | |
Unpaid Amount | debt_amount |
debt_amount |
Unpaid amount | |
Unpaid Write-off | adjustment_amount |
adjustment_amount |
Unpaid write-off amount | |
Billing Period | billing_date |
bill_date |
Resource consumption record date. Format: YYYY-MM-DD | |
Region | region_id |
region |
Region ID | |
Instance ID | instance_id |
resource_id |
Instance ID | |
Consumer ID | account_id |
customer_id |
Consumer ID of resource consumption | |
Consumer Name | account_name |
customer_id |
Consumer ID of resource consumption |
Each time the script runs, the data statistics granularity is resource (instance) id: resource_id; billing consumption amounts for the same instance will be merged, specific details can be viewed in the comparison between Huawei Cloud API raw data and data aggregated by the script below
Huawei Cloud API Raw Data
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
Script Aggregation
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
4. Linkage with Custom Object Collectors
When other custom object collectors (such as EC2, RDS) are running within the same DataFlux Func, this collector automatically attempts to match the resource_id
field returned by the bill with the tags.name
field of custom objects.
Assuming the original data collected by the billing data is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
At the same time, the custom object data collected by the Huawei Cloud EC2 collector is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Upon successful matching, fields from the matched custom object tags
except name
will be added to the tags
of the billing data.
Thus, the final reported billing data is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 |
|
X. Appendix
Huawei Cloud - Billing Management "Query Resource Consumption Records"
Please refer to the Huawei Cloud official documentation: