Create a Perspective

Updated 2 days ago by Archana Singh

Currently, this feature is in Beta and behind a Feature Flag. Contact Harness Support to enable the feature. Feature Flags can only be removed for Harness Professional and Essentials editions. Once the feature is released to a general audience, it is available for Trial and Community Editions.

Harness Continuous Efficiency (CE) Cost Explorer 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. 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 customized view 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 filtering and criteria. 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, and GCP.
  • 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.

Perspectives use a rule-based engine to organize and display your cloud costs. Each view has a set of rules and each rule can have multiple conditions. Each condition will have different operators. The supported operators are:

  • IN: The exact match operation used to filter for the exact value specified.
  • NOT IN: The exact match operation used to filter for the exact value that is not specified.

The sections below explain how to create Perspectives and use them.

In this topic:

Before You Begin

Limitations

  • You can create up to 50 Perspectives.
  • Perspective name must not include any special character.
  • You can add up to 50 Email IDs for sharing the report schedule.

Create a Perspective

You can create fully customized perspectives by grouping your resources the way you wish. For example, if you want to create a view for your CFO, you would first select the default field and then further group by Service, Account, Workload, Namespace, etc. that you would want to include in your view.

Perform the following steps to create Perspectives:

  1. In Continuous Efficiency, click Perspectives.
  2. Click Create a new perspective.
  3. In Custom 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 view.
    Perspective name must not include any special character.
  4. In Custom Perspective Builder, in Filters for Perspective, click add filter.

    You can add filters using default fields or you can create new custom fields.

Option 1: Add a Filter Using Default Fields

Create fully customized views for your resources using default fields and filters. The default fields are used to group your resources. The following are the supported default fields:

  • AWS: Harness Continuous Efficiency (CE) 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 on the group by filters, see Analyze Cost for AWS.
  • GCP: Harness Continuous Efficiency (CE) 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 on the group by filters, see Analyze GCP Cost.
  • Cluster: For more information on the group by filters, see Analyze Cost Across Clusters.
  • Region: Each AWS or GCP region you are currently running services in.
  • Product: Each of your active products with their 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.

Perform the following steps to add filters using default fields.

  1. In Custom Perspective Builder, in Filters for Perspective, click add filter and select AWS, GCP, Cluster, Region, Product, and/or Label from the Default Fields.
  2. Select filter by options. Based on your group by selection, the filters are listed.
  3. Select the operator. The supported operators are:
  • IN: The exact match operation used to filter for the exact value specified.
  • NOT IN: The exact match operation used to filter for the exact value that is not specified.
  1. Select value for your filter. You can select multiple values. You can also filter and customize your result using the search option.
  2. Once you have added all the filters, you can add a report sharing schedule.
  3. Click Save. The cost data for your selection is displayed.

Option 2: Add a Filter Using New Custom Field

If you don't want to create a customized view using default fields, but instead are looking to use custom fields, then adding filters using the new custom field will fit your requirement. Custom fields provide you the flexibility to create your own filters using SQL functions.

  1. In Custom Perspective Builder, in Filters for Perspective, click add filter and select Create new custom field.
  2. In Custom field creation, enter a name for your field.
  3. (Optional) Enter Description.
  4. Enter formula to create your custom field. The derived fields use SQL function ONE_OF().
    CASE
    WHEN x IS NOT NULL THEN x
    ELSE y
    END
  5. Select function from the list. Use Enter key to list the functions.
  6. Use Group by and Filter combination to create the custom field. For example, ONE_OF(aws.account, gcp.Product)
  7. The customized fields are added under Custom Fields.
  8. Click Save.
  9. Select the custom field for which you want to view the cost data.

You can also edit, clone, and delete Perspectives.

Perform Root Cost Analysis Using Perspectives

Perspectives allow you to view your costs at a glance, understand what is costing the most, and analyze cost trends across all your clusters, AWS, and GCP in a single-pane view.

  1. In Continuous Efficiency, click Perspectives.
  2. Select the date range for the costs you want to analyze.
  3. Select the resources from the Group by list. You can further customize your selection by using Filter settings. Based on your selection, the total cost is calculated and displayed for all your clusters, AWS, and GCP cloud environments. By default, the cost data for the Common: Product is displayed. You can further group by Product, Region, and Label.
  4. You can further customize your selection by using Group By and  Filter settings.
  5. The cost data for custom fields are displayed under the Custom tab.

Edit a Perspective

To edit a Perspective, perform the following steps:

  1. In Continuous Efficiency, click Perspectives. All the Perspectives that you have created are listed.
  2. Select the Perspective that you want to edit.
  3. Click on the more options button () and click Edit. The Custom Perspective Builder settings appear. Follow the steps in add filters using default fields or create new custom fields.

Clone a Perspective

To clone a Perspective, perform the following steps:

  1. In Continuous Efficiency, click Perspectives. All the Perspectives that you have created are listed.
  2. Select the Perspective that you want to clone.
  3. Click on the more options button () and click Clone.
  4. Enter name. By default, the name is populated. You can edit the field.
  5. Click Submit.

Delete a Perspective

To delete a Perspective, perform the following steps:

  1. In Continuous Efficiency, click Perspectives. All the Perspectives that you have created are listed.
  2. Select the Perspective that you want to delete.
  3. Click on the more options button () and click Delete.
  4. Click Confirm Delete.

Add a Report Sharing Schedule

You can specify a report sharing schedule to receive your consolidated Perspectives weekly cost report. The cost report can be sent to the specified email address. Perform the following steps to add the report sharing schedule:

  1. In Custom Perspective Builder, click add a report sharing schedule.
  2. Enter the name of the report.
  3. Enter the email ID of the recipient.
    You can add up to 50 email IDs for sharing the report schedule. Email IDs are separated by the commas.
  4. Select the Repeat frequency for sharing the report.
  5. If you select custom, enter Cron expression to specify the schedule.
  6. Click Create Schedule.

You can also edit or delete the schedule.

Edit a Report Sharing Schedule

To edit a schedule:

  1. Click Edit.
  2. The Report Sharing Schedule settings appear. Follow the steps in Add a Report Sharing Schedule to edit the details of the schedule.

Delete a Report Sharing Schedule

Once a schedule is deleted, it cannot be restored.

To delete a schedule:

  1. Click Delete.
  2. Click Confirm Delete.

The schedule no longer appears in the Custom Perspective Builder.

Next Steps


How did we do?