All Products
Search
Document Center

Container Service for Kubernetes:Query bills

Last Updated:Dec 18, 2024

You can view the billing statements and details related to your Container Service for Kubernetes (ACK) cluster on the Expenses and Costs page to understand your expenses.

View bills

  1. Log on to the Expenses and Costs page.

  2. In the left-side navigation pane, choose Bills > Bill Details, then click the Billing Details tab.

  3. Select the statistic item and statistic period, set the query conditions, and view the bill.

    Filter condition

    Description

    Statistic Item

    Bills are aggregated based on the statistic item that you specify. For example, selecting Instance will aggregate bills by instances.

    Statistic Period

    Bills are displayed based on the statistic period that you specify. For example, selecting Billing Period displays billing cycle by hour.

    Query conditions

    You can query bills by conditions such as month, product name, instance name and instance ID.

    Note

    In the upper-right corner of the query results list, click Customize Column Options to modify the displayed columns. You can also click Export Billing Overview (CSV) to download the list as a CSV file.

    Example 1: View cluster management fees

    The ACK Pro cluster incurs a cluster management fee, which is displayed as ACK Pro Pricing.

    To view these bills, select Product as Container Service For Kubernetes. If you need to inquire about the management fees for a specific cluster, you can search by the cluster name or ID. The following figure shows an example of the bills:

    国际站集群费.png

    Example 2: View bills for cloud services associated with clusters

    To query billing details for cloud services associated with clusters, select the appropriate product name under Product, and search for an instance ID or name.

    For example, to query Elastic Compute Service (ECS) bills, consider the following:

    • Select Product as Elastic Compute Service.

    • (Optional) Select Instance ID and enter an ECS instance ID for the query. Multiple IDs are not supported.

      You can obtain all ECS instance IDs associated with your cluster from the Nodes page in the ACK console. Then, individually query the bills for each ECS instance using their IDs. Since this filter does not support entering multiple IDs, if you need to view bills for all ECS instances within a cluster, you can leave this filter empty. Instead, query all ECS bills by selecting the Product only, export the billing details to a CSV file, and filter the bills by instance ID.

      Note

      By default, ECS instances created by ACK have names in the format worker-k8s-for-cs-<Cluster ID>. You can also batch query by filtering with the instance name worker-k8s-for-cs-<Cluster ID>. However, this method may not capture all bills if there are ECS nodes with different names in the cluster.

    The following figure shows an example of the bills:

    ECS账单-en.png

References

  • ACK supports the Cost Insights feature, which can help you understand cluster resource usage and cost distribution from multiple dimensions, and receive cost-saving suggestions. For more information, see Overview of cost insights.

  • For more information about bills, see Billing details.

  • You can review the consumption summary information on the Overview of Monthly Bill page. For more information, see Overview of Monthly Bill.