Cost Explorer overview

Cost Explorer is the primary cost management interface for viewing, filtering, and analyzing your IT expenditure across cloud and OpenShift environments by time, source, and metrics.

With Cost Explorer you can perform the following tasks:

  • Identify abnormal events.
  • Understand how your cost data changes over time.
  • Create custom bar charts of your cost and usage data.
  • Export custom cost data files.
Figure 1. The Cost Explorer Interface

Cost explorer in cost management with an all openshift graph

A single bar in the Cost Explorer chart represents one day of cost and usage data corresponding to the filtered options. The five most significant metrics are individually displayed and all other metrics placed into the Others category.

Cost of unallocated resources in an OpenShift cluster

Unallocated costs are visible when viewing OpenShift cost data grouped by project. Rows named Platform unallocated and Worker unallocated are available when viewing OpenShift cost data by project.

Platform unallocated costs
The costs for parts of primary and infrastructure nodes that are not allocated to run workloads. In this case, those workloads are the OpenShift platform or control plane.
Worker unallocated costs
The costs that represent any unused part of your worker node’s usage and request capacity.
Network unattributed costs
Costs associated with ingress and egress network traffic for individual nodes.

Unattributed Storage project for OpenShift on Cloud

Cost management is able to estimate the size of the cloud disk through the Cost Usage report. Cost management correlates the cloud disk to the Persistent Volume Claim (PVC) through the Container Storage Interface (CSI) volume handle. It identifies unattributed storage by calculating the unutilized portion of the disk in the following scenarios:

Volumes without a claim
A persistent volume (PV) exists, but there are no persistent volume claims (PVCs) that use the volume. Without a claim, the cloud cost cannot be associated with a node or namespace.
Unutilized disk space
There is disk space on the cloud disk that is not being used.

Consider the following example:

  • You have a disk that has 30 GiBs.
  • Project A creates a persistent volume that has a capacity of 20 GiBs.
  • The cloud integration charges $60 for that disk.

Cost management uses the following equation to calculate how much to charge Project A based on disk capacity. In this example, the cost is $40:

(PV’s Capacity) / Disk Capacity * Cost of Disk

20/30 * 60 = $40

The cloud integration still bills you for the $60 dollars, but cost management can only attribute $40 to Project A based on how much Project A requested. The remaining $20 is assigned to the Unattributed Storage project. Cost management calculates the remaining portion of that disk with the following equation. In this example, the cost is $20:

((Disk Capacity - Sum(PV capacity) / Disk Capacity) * Cost of Disk

(30 - 20) / 30 * 60 = $20