All Products
Search
Document Center

MaxCompute:View billing details

Last Updated:Nov 06, 2024

This topic describes how to view the billing details and usage records of MaxCompute. This topic also provides best practices for billing analysis in typical scenarios.

Go to Expenses and Costs

Log on to the Alibaba Cloud Management Console. In the top navigation bar, click Expenses, and enter the Expenses and Costs page.费用

Note

Before you access Expenses and Costs as a Resource Access Management (RAM) user, you must grant the AliyunBSSFullAccess policy to the RAM user by using your Alibaba Cloud account. For more information, see Grant permissions to a RAM role.

View billing details

  • Query daily bills.

    1. In the left-side navigation pane, choose Bills > Bill Details. On the page that appears, click the Consumption by Bill tab.

    2. Click the Filter icon next to Product Name and select MaxCompute to view the daily bills of MaxCompute.image

      Description:

      • MaxCompute (Pay-As-You-Go) with Subscription Type set to Pay-As-You-Go: All pay-as-you-go bills that are generated for the resource packages of MaxCompute pay-as-you-go Standard Edition or Developer Edition on the day. You are billed for the storage resources, computing resources, and traffic for Internet-based data downloads in these packages based on the pay-as-you-go billing method.

      • MaxCompute (Spot) with Subscription Type set to Pay-as-you-go: All pay-as-you-go bills that are generated for the resource packages of MaxCompute pay-as-you-go Spot Edition on the day. You are billed for the computing resources on the pay-as-you-go billing method.

      • MaxCompute (Subscription) with Subscription Type set to Pay-As-You-Go: All pay-as-you-go bills that are generated for the subscription resource packages of MaxCompute on the day. You are billed for the storage resources, traffic for Internet-based data downloads, and elastically reserved CUs in these packages based on the pay-as-you-go billing method.

      • MaxCompute (Subscription) with Subscription Type set to Subscription: All subscription bills that are generated for the subscription resource packages of MaxCompute on the day. You are billed for all new purchases, configuration upgrades and downgrades, and package renewals based on the subscription billing method.

  • Query the daily consumption details of pay-as-you-go billable items.

    1. In the left-side navigation pane, choose Bills > Bill Details. On the page that appears, click the Billing Details tab.

    2. Select Billing Item for Statistic Item, and By Day for Statistic Period.

    3. Select MaxCompute from the Product drop-down list to view the daily bills of MaxCompute.image.png

      Description:

      • Instance ID: the billing unit. Bills are generated for pay-as-you-go services of MaxCompute based on the following billing units:

        • Project- and region-based billing unit: This billing unit is applicable for billable items, such as computing resources, storage resources, and traffic for Internet-based data downloads. MaxCompute generates a bill for each billable item on a daily basis.

        • Spot computing billable items (Spot jobs), billed daily for each billable item based on the combination of Project and Region.

        • Level-1 quota- and region-based billing unit: This billing unit is applicable for elastically reserved compute units (CUs). MaxCompute generates a bill on an hourly basis.

      • Billing Item: The pay-as-you-go billable items, such as computing resources, storage resources, traffic for data downloads, and quotas.

      • Usage, Usage Unit, and Pretax Gross Amount: The following table describes these fields and the formulas that are used to calculate the pretax gross amount for each billable item:

        Billable item

        Usage

        Usage unit

        Price calculation formula

        Storage

        Standard storage: the storage used for a project on the day divided by 24.

        Byte

        • In most cases:

          Public cloud: Usage × Unit price (USD 0.0006/GB/day).

        • If the actually used storage space of a project is less than or equal to 1 GB, no fees are generated.

        Backup storage

        The backup storage used for a project on the day divided by 24.

        Byte

        Public cloud: Usage × Unit price (USD 0.0006/GB/day).

        Elastically reserved CU

        The value of all elastically reserved CUs for Level-1 Quota.

        CU-hours

        Public cloud: Usage × Unit Price (USD 0.0488/CU/Hour)

        Traffic for Internet-based data downloads

        The amount of data that is downloaded over the Internet for a project on the day.

        Byte

        Public cloud: Usage × Unit price (USD 0.1166/GB).

        Computing for SQL jobs

        The sum of computing resource usage of standard SQL jobs that use the pay-as-you-go Standard Edition and are successfully executed for a project on the day. The computing resource usage of each standard SQL job is calculated by multiplying the amount of input data by the SQL complexity of the job.

        Byte

        Public cloud: Usage × Unit Price (USD 0.0438/GB)

        Computing for SQL jobs that involve Object Storage Service (OSS) external tables

        The amount of input data for the SQL jobs that use the pay-as-you-go Standard Edition and are successfully executed for a project on the day. The SQL jobs involve OSS external tables.

        Byte

        Public cloud: Usage × Unit Price (USD 0.0044/GB)

        Computing for SQL jobs that involve Tablestore external tables

        The amount of input data for the SQL jobs that use the pay-as-you-go Standard Edition and are successfully executed for a project on the day. The SQL jobs involve Tablestore external tables.

        Byte

        Public cloud: Usage × Unit Price (USD 0.0044/GB)

        Computing for Spark jobs

        The amount of billable hours used by the Spark jobs that use the pay-as-you-go Standard Edition and are successfully executed for a project on the day.

        Billable hour

        Public cloud: Usage × Unit Price (USD 0.1041/Billable hour)

        Computing for Mars jobs

        The amount of billable hours used by the Mars jobs that use the pay-as-you-go Standard Edition and are successfully executed for a project on the day.

        Billable hour

        Public cloud: Usage × Unit Price (USD 0.1041/Billable hour)

        Computing for MapReduce jobs

        The amount of billable hours used by MapReduce jobs that are successfully executed for a project on the day.

        Billable hour

        Public cloud: Usage × Unit Price (USD 0.0690/Billable hour)

        Computing for SpotSQL jobs

        The sum of computing resource usage of SQL jobs that use the pay-as-you-go Spot Edition and are successfully executed for a project on the day. The computing resource usage of each SQL job is calculated by multiplying the amount of input data by the SQL complexity of the job.

        Byte

        Public cloud: USD 0.0146/GB

        Computing for SpotSpark jobs

        The amount of billable hours used by the Spark jobs that use the pay-as-you-go Spot Edition and are successfully executed for a project on the day.

        Billable hour

        Public cloud: USD 0.0347/CU/Hour

        Computing for SpotMars jobs

        The amount of billable hours used by the Mars jobs that use the pay-as-you-go Spot Edition and are successfully executed for a project on the day.

        Billable hour

        Public cloud: USD 0.0347/CU/Hour

        Computing for SpotMapReduce jobs

        The amount of billable hours used by the MapReduce jobs that use the pay-as-you-go Spot Edition and are successfully executed for a project on the day.

        Billable hour

        Public cloud: USD 0.023/CU/Hour

        Computing for SpotOSS external table jobs

        The amount of input data for the SQL jobs that use the pay-as-you-go Spot Edition and are successfully executed for a project on the day. The SQL jobs involve OSS external tables.

        Byte

        Public cloud: USD 0.0044/GB

        Computing for SpotOTS external table jobs

        The amount of input data for the SQL jobs that use the pay-as-you-go Spot Edition and are successfully executed for a project on the day. The SQL jobs involve Tablestore external tables.

        Byte

        Public cloud: USD 0.0044/GB

  • Query the consumption details of subscription billable items.

    1. In the left-side navigation pane, choose Bills > Bill Details. On the page that appears, click the Billing Details tab.

    2. Select Billing Item for Statistic Item, and By Day for Statistic Period.

    3. Select MaxCompute from the Product drop-down list to view the daily bills of MaxCompute.

      Description:

      • Instance ID: The billing unit. You are billed each time for level-1 quota usage, new purchases, configuration upgrades and downgrades, and package renewals based on the subscription billing method of MaxCompute.

      • Billing Item: The types of resources that generate fees.

      • Usage, Usage Unit, and Pretax Gross Amount: The following table describes these fields and the formulas that are used to calculate the pretax gross amount for each billable item:

        Billable item

        Usage

        Usage unit

        Price calculation formula

        Computing resource

        The amount of computing resources that are used for new purchases or configuration upgrades.

        CU

        Public cloud: Usage × Unit Price (USD 22.0/CU/Month)

Usage records

Go to the Usage Records page to download and view the daily resource usage records and check the items for which fees are generated. For example, you can check the storage and computing costs of each day and determine from which jobs the costs are generated. For more information about how to download and analyze the resource usage records, see Analyze the usage records of MaxCompute bills.

Best practices

Scenario

Description

Best practice

Analyze the distribution of fees incurred by MaxCompute services based on the usage records.

Users want to know the distribution of fees, or make sure that the fees incurred when they use MaxCompute services do not exceed expectations.

Analyze the usage records of MaxCompute bills

Analyze the reasons for unexpected fee increases

If the daily consumption is usually stable, but fees double unexpectedly during a certain period, users want to identify the cause of the sudden increase.

Troubleshoot an unexpected surge in the postpaid fees of MaxCompute

Statistics of TOPN fee accounts and time-consuming jobs

Data developers typically use MaxCompute through DataWorks standard mode, which records the execution account of all jobs as the same account in the Information Schema, with only a few being RAM users. Developers need a way to collect statistics on the costs of each account and time-consuming jobs.

Collect statistics on accounts with top N costs and top N time-consuming jobs of MaxCompute projects