Cost insights overview
Alibaba Cloud Container Compute Service (ACS) provides the cost insights feature to help you analyze resource utilization, identify cost-saving opportunities, and improve efficiency across your clusters. Once enabled, the feature allows you to view resource usage and costs for specific clusters, namespaces, or applications over a specified financial period.
Before you start
Before using cost insights, familiarize yourself with the following key concepts:
Cost allocation: How pod-level costs are aggregated and allocated to departments and applications.
Cost dashboard: How to view and analyze your cost data in the console.
Why use cost insights?
Cloud-native technologies offer sharing, isolation, and elasticity, which make cost optimization straightforward, but they also introduce cost management challenges that are not present in traditional, capacity-based planning. Common challenges include:
-
Accurately tracking the costs of an ACS cluster
-
Accurately estimating the costs of specific online applications or offline jobs
-
Allocating cluster management costs to different departments or teams (often represented by namespaces)
-
Visually identifying and eliminating wasted cost within a cluster
Figure 1. Cluster utilization comparison
Cost insights is a key part of a successful Finance + DevOps (FinOps) strategy, providing the data you need across the entire cost governance lifecycle: monitoring cost trends, analyzing cost anomalies, and evaluating optimization efforts.
Cost allocation for departments and applications
Enterprises typically map their organizational structure to Kubernetes resources by assigning each department to a dedicated namespace and distinguishing applications within that department using labels. In this model, the cost of a department or application is the aggregated cost of all its pods.
However, this direct aggregation of estimated pod costs is often insufficient for accurate financial reconciliation, for two main reasons:
-
It does not account for discounts or savings plans.
-
It ignores the cost of other cloud resources in the cluster, such as Managed Service for Prometheus and Simple Log Service (SLS).
To solve this, a more accurate allocation method is required. First, calculate each pod's share of the actual billed cluster cost by distributing the total bill in proportion to each pod's estimated resource consumption. Then aggregate the allocated costs up to the application and department levels.
Cost insights dashboards
Cost insights uses a default cost allocation algorithm that combines metering and billing data. This algorithm underpins three dashboards, each offering a different dimensional view of your cost data. After enabling the cost insights feature, you can access these dashboards in the ACS console. For more information, see Cost insights .
|
Dimension |
Description |
|
Cluster |
Provides a high-level overview of resource usage and cost trends for an entire cluster. Use this view to assess the cost health of your cluster and identify abnormal cost fluctuations that require further investigation. |
|
Namespace |
If your organization uses namespaces to represent departments or business units, use this view to filter and analyze resource consumption and costs for a specific namespace. |
|
Application |
This view is designed for scenario-based cost optimization. Use a label selector to filter for one or more applications and analyze their aggregated resource usage and costs. For example, apply the same label to all components of a big data workflow to analyze the total cost of that specific business process. |