Enabling Cost Insights
Cost Insights uses in-house cost profile algorithms to split costs by department, cluster, namespace, or application, based on your bills and cluster resource usages. Cost Insights helps cost management personnel analyze cluster costs and resource usages and identify resource waste for cost optimization.
This section describes how to enable Cost Insights.
- After Cost Insights is enabled, Cloud Native Cluster Monitoring will be installed automatically, and metrics will be reported to the selected AOM instance. Basic metrics are free, but custom metrics are charged by AOM. For details, see Pricing Details. Cost Insights only uses basic metrics.
- After Cost Insights is enabled, an OBS bucket will be created in AP-Singapore to store your bills subscribed from the billing center. Then, you will be billed for the OBS storage. For details, see Pricing Details.
Prerequisites
You have an account in the admin user group to delegate CCE and its dependent services.
When you access Cloud Native Cost Governance, the Authorize dialog box is automatically displayed. After you click Authorize, CCE automatically completes the authorization. For details about permission types, see Table 1.
Assigned To |
Permission |
Description |
---|---|---|
CCE |
IAM ReadOnlyAccess |
IAM users need to access Cloud Native Cost Governance. |
CCE |
Tenant Guest |
Cloud Native Cost Governance checks the configurations of global resources (such as OBS and DNS) associated with a cluster. |
CCE |
CCE Administrator |
Cloud Native Cost Governance needs to access CCE to obtain information about clusters, nodes, and workloads for health checks. |
CCE |
AOM Administrator |
Cloud Native Cost Governance needs to access AOM to obtain metrics. |
CCE |
OBS Administrator |
Cloud Native Cost Governance needs to access the OBS bucket where your bills are stored. |
CCE |
CBC Finance |
Cloud Native Cost Governance needs to periodically store your bills in the OBS bucket for later use. |
AOM |
DMS UserAccess |
AOM retrieves data from DMS. |
AOM |
ECS CommonOperations |
AOM obtains system metrics and logs from the UniAgent and ICAgent installed on an ECS. |
AOM |
CES ReadOnlyAccess |
AOM synchronizes metrics from Cloud Eye. |
AOM |
CCE FullAccess |
AOM synchronizes container metrics from CCE. |
AOM |
RMS ReadOnlyAccess |
AOM CMDB manages cloud service instance data. |
AOM |
ECS ReadOnlyAccess |
AOM obtains system metrics and logs from the UniAgent and ICAgent installed on an ECS. |
AOM |
LTS FullAccess |
AOM obtains logs from LTS. |
AOM |
CCI FullAccess |
AOM synchronizes container metrics from CCI. |
Constraints
- Cloud Native Cost Governance is only available in clusters v1.17 or later.
- Before using Cloud Native Cost Governance, you need to use an account in the admin user group to delegate CCE and its dependent services. After the authorization is complete, users with the CCE Administrator role or CCE FullAccess permission can perform all operations on Cloud Native Cost Governance.
Enabling Cost Insights for a Region
- Log in to the CCE console. In the navigation pane, choose Cloud Native Cost Governance.
Figure 1 Cloud Native Cost Governance
- Click Enable, select clusters that require Cost Insights, and click Connect Now.
The system will automatically perform the following operations. After 3 to 5 minutes, the Cost Insights page is displayed.
- Install Cloud Native Cluster Monitoring to provide basic metrics for Cost Insights.
- Activate cost tags. Cluster tags will be added to the bills exported from the billing center. The Cost Insights background classifies the bills by cluster. After this step is complete, the CCE-Cluster-ID and CCE-Dynamic-Provisioning-Node tags are activated on the cost tag page of Cloud Native Cost Governance.
- Create an OBS bucket named cce-cost-{region}-{domain_id} for the default tenant to store bills exported from the billing center.
- Subscribe to bills. After bills are subscribed, the billing center will periodically push bills to the OBS bucket for cost insights.
Figure 2 Enabling Cost Insights for clusters
- (Optional) Click Create Department.
Figure 3 Creating departments
- Customize departments based on the service requirements and associate them with clusters or namespaces as follows:
- Department Name: Use the actual name of a business department.
- Department Scope: Select the cluster or namespace for the business department. In the following example, department1 and department2 are configured by namespace.
Figure 4 Customizing departments
- Allocate shared costs in a cluster to departments. Management costs and unallocated costs in the default cluster are evenly allocated among departments. The allocation ratio can be changed.
Figure 5 Allocating shared costs
- Manage costs by department. After departments are created, click Submit. The configurations are displayed on the department management page. The following shows example department configurations.
Figure 6 Department configurations
- Customize departments based on the service requirements and associate them with clusters or namespaces as follows:
Enabling Cost Insights for a Cluster
- Log in to the CCE console and click the cluster name to access the cluster console.
- In the navigation pane, choose Cloud Native Cost Governance > Cost Insights.
- Click Enable. The system automatically installs Cloud Native Cluster Monitoring, activates cost tags, creates an OBS bucket for the default tenant, and subscribes to bills. Wait for 3 to 5 minutes. The Cost Insights page is displayed.
Figure 7 Enabling Cost Insights
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot