This topic introduces the cost analysis feature and describes how to configure cost analysis for a Container Service for Kubernetes (ACK) cluster.
Prerequisites
- The Kubernetes version of your ACK cluster is 1.18.8 or later. If the Kubernetes version is earlier than 1.18.8, update to 1.18.8 or later. For more information, see Update the Kubernetes version of an ACK cluster.
- Application Real-Time Monitoring Service (ARMS) Prometheus is enabled for your cluster. For more information, see Enable ARMS Prometheus.
- The cost analysis feature is enabled for your cluster. For more information, see Enable cost analysis.
View cost analysis results
Cluster cost analysis

The following table describes the features of the dashboard.
No. | Feature | Description |
---|---|---|
1 | Analyze the resource waste of the cluster based on the cost trend | The dashboard displays information about the cost of the cluster. Daily Cost indicates
the cost of the previous day. Weekly Cost indicates the cost of the previous week.
Monthly Cost indicates the cost of the previous month. Day-on-day Ratio indicates
the growth rate of the cost of the previous day.
|
2 | The yellow curve indicates the resource consumption of the cluster. The blue curve
indicates the actual resource capacity of the cluster. In common cases, the two curves
may be correlated with each other.
If the two curves represent different trends, it indicates changes to the average cost of individual CPU cores. In this case, you can check whether resources of higher prices are consumed. |
|
3 | The cost trend within a specific time period. | |
4 | Allocate the cost based on namespaces |
A cluster may contain nodes of different specifications and billing methods. When you allocate the cost based on namespaces, you must consider the price differences of nodes that host pods in different namespaces, not only the resource consumption of different namespaces. The cost analysis feature converts the real-time cost of each node and provides the
following formula to calculate the cost of a namespace:
This provides a precise method to calculate the cost of a namespace. However, discounts, vouchers, and subscriptions may cause the actual cost to be different from the cost calculated based on this formula. To obtain the actual cost of a namespace, you can multiply the actual cost of the cluster by the ratio of the cost of this namespace to the total cost of all namespaces. |
5 | Analyze the costs of cloud resources based on cost trends | A cluster may use multiple cloud resources. The costs of cloud resources vary based on billing rules and how the cloud resources are used by the cluster. This feature provides the cost trends and contributions of different cloud resources. This provides information that helps you reduce the cost of the cluster. |
FAQ