opencost

Cost monitoring for Kubernetes workloads and cloud costs

What is opencost?

Cost monitoring for Kubernetes workloads and cloud costs

Overview of opencost

What it is

OpenCost is an open source cost monitoring tool for Kubernetes and cloud spend. It provides visibility into current and historical Kubernetes and cloud spend and resource allocation. OpenCost was originally developed and open sourced by Kubecost. It combines a specification and a Golang implementation. The web UI is available in the opencost/opencost-ui repository.

Key features

  • Real-time cost allocation by Kubernetes cluster, node, namespace, controller kind, controller, service, or pod
  • Multi-cloud cost monitoring for all cloud services on AWS, Azure, GCP
  • Dynamic on-demand k8s asset pricing enabled by integrations with AWS, Azure, and GCP billing APIs
  • Supports on-prem k8s clusters with custom CSV pricing
  • Allocation for in-cluster K8s resources like CPU, GPU, memory, and persistent volumes
  • Carbon costs for cloud resources
  • AI inference cost tracking for vLLM-based deployments: cost per million tokens (input/output), KV cache-corrected pricing, shared infrastructure attribution, REST APIs and Prometheus metrics

Use cases

OpenCost is used for cost monitoring in Kubernetes environments that support multiple applications, teams, departments, etc. It also provides visibility into cloud costs across multiple providers. Use cases include tracking Kubernetes and cloud spend, allocating costs by various dimensions, and monitoring AI inference costs for vLLM-based deployments.

Getting started

OpenCost is installed and managed via the official Helm chart. Quick install on any Kubernetes 1.20+ cluster:bashhelm repo add opencost https://opencost.github.io/opencost-helm-charthelm repo updatehelm install opencost opencost/opencost

License and pricing

OpenCost is distributed under the Apache-2.0 license. It is free and open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/opencostopencost.svg)](https://yunodb.com/tools/opencostopencost?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/opencostopencost?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/opencostopencost.svg" alt="Featured on YunoDB" height="20"></a>