Create Cost Perspectives

Updated 3 weeks ago by Archana Singh

Harness Cloud Cost Management (CCM) allows you to view, understand, and analyze your cloud costs in a simple and intuitive interface. You can add business context to all this data using Perspectives. Perspectives allow you to group your resources in ways that are more meaningful to your business needs.

In this topic:

Before You Begin

Cloud Costs Perspective Concepts

This section defines different concepts of Cloud Costs Perspective concepts.

Perspectives

Perspectives allow you to group your resources in ways that are more meaningful to your business needs. It provides a unified view of your cloud cost data across the cloud environment. For example, you can group and filter by Account, Environment, Service, Region, Product, Label, Namespace, Workload, etc. and create a perspective for your business, finance, and engineering teams. Here are some of the examples where you could use Perspectives:

  • Build your own visual interface using flexible rules and filters. Each role or team within an organization has different needs and criteria to measure and evaluate the business. With Perspectives, business units can create views that align with their business needs based on groups of resources determined by different rules and filters.
  • Create Perspectives broken down by project, team, department, or business unit to gain granular visibility into all your cloud environments. Perspectives provide a single-pane view of different products, for example, clusters, applications, AWS, GCP, and Azure.
  • Schedule and share the reports with the key stakeholders for maximum business impact.
  • Estimate costs consumed by specific teams, groups, departments, BUs, LOBs cost-centers, etc.

Rule-Based Engine

Perspective uses a rule-based engine to organize and display your cloud cost. Each perspective has a set of rules and each rule can have multiple conditions. The following operators are supported for each condition:

  • IN: The exact match operation is used to filter for the exact value specified.
  • NOT IN: The exact match operation is used to filter for all values except the one that is specified.
  • NULL: Null means the selected filter has no value. If you select NULL for your filter, then the cost of the selected filter is not included in the perspective.

    For example, in Rules for Perspective, if you select Label: kubernetes.io/name as NULL, then your Perspective will not include the cost for the selected label (kubernetes.io/name). It will include the cost for all the other resources.
  • NOT NULL: Not null means that the selected filter has value. If you select NOT NULL for your filter, then only the cost of the selected filter is included in the perspective.

    For example, in Rules for Perspective, if you select Label: kubernetes.io/name as NOT_NULL, then your perspective will list the cost of the selected label only (kubernetes.io/name). It will not include the cost of any other resources.

Filters

You can create a Perspective for your resources using rules and filters. The filters are used to group the resources. The following are the supported filters:

  • AWS: CCM allows you to view your AWS costs at a glance, understand what is costing the most, and analyze cost trends. CE displays the data for all your Amazon Web Services (ECS, EC2, and so on). For more information, see Analyze Cost for AWS Using Perspectives.
  • GCP: CCM allows you to view your Google Cloud Platform (GCP) costs, understand what is costing the most, and analyze cost trends. CE displays data for all your GCP products (such as Compute Engine, Cloud Storage, BigQuery, and so on), projects, SKUs, and location. For more information, see Analyze Cost for GCP ​Using Perspectives.
  • Azure: CCM allows you to view your Azure costs at a glance, understand what is costing the most, and analyze cost trends. CE displays the data for all your Azure services (Storage account, Virtual machines, Containers, and so on). For more information, see Analyze Cost for Azure Using Perspectives.
  • Cluster: Total cost, Cost trend, Idle cost, and Unallocated cost for each cluster.
  • Region: Each AWS, GCP, or Azure region you are currently running services in.
  • Product: Each of your active products with its cloud costs.
  • Label: Cost organized by the Kubernetes labels used in the workload manifests. This does not apply to ECS clusters. IN GCP, it refers to each label that you are using to organize your Google Cloud instances.

Preview

As you add your resources in the Perspective Builder, a Preview of your Perspective is displayed.

The following are the key advantages of Preview:

  • Provides a quick visual representation of your resources in the Perspective, without saving them.
  • Allows you to Group by your resources in the preview mode itself. You can Group by, Common, Custom (if Custom Fields are available), Cluster, AWS, GCP, and Azure.
  • Helps you to review your changes faster.
By default, the resources are Grouped by Product in Preview.

Create a Perspective

You can create a Perspective by grouping your resources the way you wish. For example, if you want to create a perspective for your CFO, first add default or custom filters and then further group by Service, Account, Workload, Namespace, etc. that you would want to include in your Perspective. You can create up to 100 Perspectives.

Perform the following steps to create a Perspective:

  1. In Cloud Costs, click Perspectives.
  2. In Perspectives, click New Perspective.
  3. In Perspective Builder, enter a name for your perspective. By default, a unique name is entered in the field. You can edit the pre-populated name of the perspective.
    Perspective name must not include any special character.
  4. In Perspective Builder, in Rules for Perspective, click + Add rule.
  5. Select Common, ClusterAWSGCPAzureRegion, or Product.
    As you add your resources in the Perspective Builder, a Preview is displayed of your Perspective.
  6. Select the operator. The supported operators are:
    • IN: The exact match operation is used to filter for the exact value specified.
    • NOT IN: The exact match operation is used to filter for all values except the one that is specified.
    • NULL: Null means the selected filter has no value. If you select NULL for your filter, then the cost of the selected filter is not included in the perspective.

      For example, in Rules for Perspective, if you select Label: kubernetes.io/name as NULL, then your Perspective will not include the cost for the selected label (kubernetes.io/name). It will include the cost for all the other resources.
    • NOT NULL: Not null means that the selected filter has value. If you select NOT NULL for your filter, then only the cost of the selected filter is included in the perspective.

      For example, in Rules for Perspective, if you select Label: kubernetes.io/name as NOT_NULL, then your perspective will list the cost of the selected label only (kubernetes.io/name). It will not include the cost of any other resources.
  7. Select value for your filter. You can select multiple values. You can also filter and customize your result using the search option.
  8. Once you have added all the filters, click Next to add a report sharing schedule and budget.
  9. Once you're done, click Save Perspective.

Create a New Report Schedule

You can share the cost report of your Perspective with your stakeholders. Create a daily, weekly, monthly, or yearly report-sharing schedule. The report is sent as per the set frequency.

  1. In Perspectives, in Reports and Budget, click create new Report schedule.
  2. In Name, enter a name for your Perspective report.
  3. In Add a report schedule, select the timezone.
  4. Select the frequency for sharing the report.
    1. Daily: Select the time from the drop-down list.
      In minutes, you can select zero or thirty minutes only.
    2. Weekly: Select the day and time from the drop-down list.
    3. Monthly: Select date and time from the drop-down list.
    4. Yearly: Select the month, date, and time from the drop-down list.
  5. In Send report to, enter an email ID of the recipient.
    You can add up to 50 email IDs for sharing the report schedule. Email IDs are separated by a comma.
  6. Click Save.
  7. Once you're done, click Save Perspective.

Create a New Budget

Perspectives allow you to set custom budgets and receive alerts when your costs exceed (or are forecasted to exceed) your budget.

  1. In Perspectives, in Reports and Budget, click create new Budget.
  2. In Set Budget Amount, in Budget Type, select a budget type.
    • Specified Amount: Enter the amount that you want to set as the budget limit.
    • Previous Month Spend: Sets the previous month spent as your budget.
  3. Click Continue.
  4. In Configure Alerts, set a threshold for the Percentage of Budget based on the Actual Cost or Forecasted Cost. Harness sends alerts when the Actual Cost or Forecasted Cost exceeds the threshold.Harness will send an alert to the specified email addresses and Harness User Groups when the actual or forecasted cost exceeds a percentage of your monthly budget.
  5. In Send report to, add email addresses to receive budget notifications.
  6. Click Save.
  7. Once you're done, click Save Perspective.


Please Provide Feedback