Updated on 2024-07-05 GMT+08:00

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.

Table 1 Resource permissions

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

  1. Log in to the CCE console. In the navigation pane on the left, choose Cloud Native Cost Governance.

    Figure 1 Cloud Native Cost Governance

  2. Click Enable, select clusters that require Cost Insights, and click Connect Now.

    The system will automatically: Wait for 3 to 5 minutes. The Cost Insights page is displayed.
    1. Install Cloud Native Cluster Monitoring to provide basic metrics for Cost Insights.
    2. 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.
    3. Create an OBS bucket named cce-cost-{region}-{domain_id} for the default tenant to store bills exported from the billing center.
    4. 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

  3. (Optional) Click Create Department.

    Figure 3 Creating departments
    1. 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
    2. 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
    3. 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

Enabling Cost Insights for a Cluster

  1. Log in to the CCE console and click the cluster name to access the cluster console.

    Figure 7 Accessing the cluster console

  2. In the navigation pane on the left, choose Cloud Native Cost Governance > Cost Insights.
  3. 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 8 Enabling Cost Insights