Cost attribution (also called cost allocation or showback/chargeback) is the practice of measuring and allocating the cost of shared infrastructure to the specific organisational units, teams, applications, or business functions that consume it. In a shared Kubernetes platform, all workloads share compute, storage, and networking resources — cost attribution makes the consumption of each consumer visible and financially accountable.
Showback vs. chargeback
Showback means making cost consumption visible to teams — they can see how much infrastructure they're consuming, but they are not directly invoiced for it. This is informational: it changes behaviour by creating awareness, but does not create financial transactions.
Chargeback means actually billing teams or business units for their consumption — transferring the cost from a central IT budget to the consuming team's budget. This creates strong financial incentives for efficient resource use.
For MSPs hosting multiple enterprise customers on a shared AravaliStack deployment, chargeback is a billing requirement — customers are invoiced based on their actual consumption of platform resources.
How cost attribution works at the platform layer
Cost attribution in Kubernetes-based platforms is typically implemented at the namespace level — pods in a namespace are attributed to the team or tenant that owns that namespace. The attribution system queries the Kubernetes API for resource requests and limits, correlates them with actual utilisation data, and applies a cost model (based on hardware acquisition cost, power, cooling, and network) to produce per-namespace cost metrics.
Cost visibility in CI/CD
The most effective cost attribution model surfaces cost information at the point where decisions are made: the deployment pipeline. A pull request that increases a deployment's replica count from 3 to 6 doubles its cost — showing this impact in the PR comment, before the change is merged, changes the economic calculus for every infrastructure decision an engineering team makes.
