Perform Root Cost Analysis

Updated 3 months ago by Archana Singh

Most cost reporting tools provide a high-level view of resource consumption that is useful for seeing the big picture. But these tools are not helpful when you want to see the low-level, root causes of your cloud costs.

Harness Continuous Efficiency (CE) lets you drill down to see which clusters, namespaces, nodes, tasks, workloads, labels, and Harness components are costing you the most money.

With CE, you can find the low-level root causes of your cloud costs and reduce unnecessary consumption.

In this topic:

Before You Begin

Option 1: Root Cost Analysis for Harness Applications

The Cost Explorer provides deep insights into your total cloud costs and resources. It helps you to understand the primary cost contributors. You can use this data to manage and optimize your cost and resources.

To perform root cost analysis on Harness Applications and subordinate components, it's important to review how Harness organizes and models your projects using Applications. See Harness Key Concepts for an overview.

The follow graphic shows how Harness represents and organizes the components of your release process using its Application model:

In CE, you begin by clicking the name of the Application you want to analyze:

Once you're viewing the Application, you drill down to its subordinate entities using the Group by filter.

The following steps take you through the process.

  1. In Continuous Efficiency, click Explorer and click Application in the top navigation. In order for an Application to appear, a Workflow in the Application must be deployed by Harness. For more information, see Applications.
  2. Select the date range for the costs you want to analyze.
  3. Select Total cost or Idle cost from the Show data filter.
  4. In addition to the Show data view, you can further customize your views using the Group by and Filter by settings to get more granular details.
    You can Group by:
    • Application: These are the sum of your Harness Application costs.
    • Cloud Providers: These are your cloud platform costs. Cloud Providers describe your public or private cloud or physical infrastructures, like AWS and Kubernetes. See Add Cloud Providers.
    • Tags (in Application): Harness Tags provide metadata for organizing, searching, and filtering Harness components. See Manage Tags. These are the costs of the components sharing the same tags.
    • None: This is the total of all Application-related costs.

Next drill down to get granular details of the Application component costs. Click on the Application, and then on the Application page, use Group by:

  • Service: Services represent your microservices and applications. These are your microservice costs.
  • Environments: Environments organize and name the deployment infrastructures in your cloud platforms, such as Dev, QA, Stage, Production, etc. These are your cloud platform infrastructures costs, grouped by team, dept, and so on.
  • Tags (in Services): This is the cost of microservices sharing the same tag in Harness Services.
  • Tags (in Environments): This is the cost of deployment infrastructures sharing the same tag in Harness Environments.
  • None: This is the total cost of this Application.

Use this data to optimize your resource consumption and cloud spend.

Option 2: Root Cost Analysis for Clusters

The Cost Explorer provides deep insights into your total, idle, utilized, and unallocated cluster costs. Just as you did with Harness Applications, with clusters you pick a cluster to analyze, and then drill down into its components to see where you're spending money.

Each of the cluster's components are exposed, along with its costs.

The following steps take you through the process.

  1. In Continuous Efficiency, click Explorer and click Cluster in the top navigation.
  2. Select the date range for the costs you want to analyze.
  3. To see costs for all clusters, select Total cost or Idle cost from the Show data filter.
  4. Use the Group by and Filter by settings to get more granular details. You can Group by:
    • Clusters: Total cost, Cost trend, Idle cost, and Unallocated cost for each cluster.
    • None:  The cost totals for all clusters.

    To get further granular details of the Cluster, click on the cluster's name, and then in the cluster's page use Group by:
    • Namespace: The cost of each Kubernetes namespace in the cluster. This does not apply to ECS clusters.
    • Workload: The cost of each Kubernetes workload or ECS service. You can see the workload type also. Workloads identified by Pod as Kubernetes pods or ECS tasks.
    • Label: Cost organized by the Kubernetes labels used in the workload manifests. This does not apply to ECS clusters.
    • Node: The cost of each Kubernetes node or ECS instance.
    • None: The total cost of all clusters.

Use this data to optimize your cloud resource consumption and cluster spending.


How did we do?