OpenCost is a vendor-neutral, open-source project for measuring and allocating cloud infrastructure and container costs in real time. It breaks Kubernetes spending down to namespace, workload and container level, for CPU, GPU, memory and persistent volumes. It takes pricing from the AWS, Azure and Google Cloud billing APIs, supports custom pricing for on-premises clusters and exports data to Prometheus. It is not a hosted service: you run it yourself in your own clusters.
OpenCost is a project of the Cloud Native Computing Foundation (CNCF), where it reached Incubating status in October 2024. Kubecost built the original allocation engine, and companies such as Amazon, Adobe, Google and Microsoft have supported the project. The software is open source under the Apache 2.0 licence and runs wherever you deploy it, including on-premises, so cost data can stay in your own infrastructure. For a European organisation this gives control over data location and avoids dependence on a single vendor, although the foundation is based in the United States.