KOP Cost Management - Governance - Rafay Product Documentation

Chargeback/Showback

Cost Governance allows creation of chargeback groups to track and bill internal teams based on resource consumption. Chargeback/Showback groups can be any logical grouping of resources and these groups can be created based on project, clusters, namespaces and/or labels. The Chargeback help the users to understand which resources are being consumed and the costs associated with these resources.

An admin can create Chargeback Groups via multiple methods:


Getting to the Chargeback Settings

Chargeback Settings page appears. By Default, Unallocated Resources, Control Plane and Common Services cost sharing are disabled. It is important to distribute the cost of unallocated resources, Control Plane and common services among the different teams/applications utilizing the cluster.

Unallocated Resources

Control Plane

Common Services

Users can configure a common service policy, assigning specific costs to the shared services. The allocation of unallocated costs is then distributed proportionally based on the usage of these common services across namespaces.

Enabling Common Services allows to Add Policy and select Share Policy. Common Services can be configured using the policies.

New Policy Details screen appears.

The list of policies is displayed as shown below.

Important

Limitations


Chargeback Groups

A chargeback group is a collection of resources forming a logical entity in a customer's organization. These would typically be based on namespaces and/or specific ‘labels’.

Users have the flexibility in the platform to create chargeback groups based on a variety of parameters. Org Admin can create chargeback groups.

Create Chargeback Group

Perform the below steps to create a chargeback group:

📌 Note
When selecting Namespace as the aggregation type, you can optionally enable Additional Namespace Labels.

On successful creation, you can view the newly created group in the Groups page as shown below.

Generate Cost Reports

Once a chargeback group is created, users can generate cost reports at their convenience.

The report generation process is compute intensive and it may take a few minutes to generate the report. Once the report is ready, click the download button to download the report in CSV format.

The chargeback report has distinct columns showing the allocated costs for both unallocated resources and common services.

The common service report offers insights into how these common services are utilized, allowing for a more nuanced understanding of cost distribution within the project and across namespaces.