Cette page est affichée en anglais. Une traduction française est en cours.
SkillsApr 16, 2026·3 min de lecture

OpenCost — Real-Time Kubernetes Cost Monitoring

Monitor and allocate Kubernetes infrastructure costs in real time. A CNCF sandbox project that gives teams visibility into cluster spend by namespace, pod, and label.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
OpenCost Overview
Commande d'installation directe
npx -y tokrepo@latest install 8d0547be-3974-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

TL;DR
CNCF sandbox project providing real-time Kubernetes cost allocation by namespace, pod, and label.
§01

What it is

OpenCost is a CNCF sandbox project that monitors and allocates Kubernetes infrastructure costs in real time. It gives teams visibility into cluster spending broken down by namespace, pod, deployment, and custom labels. OpenCost works with all major cloud providers (AWS, GCP, Azure) and on-premise clusters, pulling actual pricing data to calculate accurate per-workload costs.

Platform engineering teams and DevOps engineers managing Kubernetes clusters benefit most from OpenCost. It answers the question 'which team or service is driving our cloud bill' without requiring manual spreadsheet analysis.

§02

How it saves time or tokens

OpenCost automates cost attribution that otherwise requires manual cross-referencing of cloud billing dashboards with Kubernetes resource usage. Instead of spending hours parsing invoices and mapping them to workloads, teams get a real-time dashboard showing exactly where money is going. For AI workloads running on GPU nodes, this visibility helps identify idle resources quickly.

§03

How to use

  1. Install OpenCost via Helm into your Kubernetes cluster
  2. Configure your cloud provider pricing source (or use on-prem custom pricing)
  3. Access the web UI or API to view cost breakdowns by namespace, pod, or label
§04

Example

# Install via Helm
helm repo add opencost https://opencost.github.io/opencost-helm-chart
helm install opencost opencost/opencost \
  --namespace opencost --create-namespace

# Port-forward to access the UI
kubectl port-forward -n opencost \
  svc/opencost 9090:9090

# Open http://localhost:9090 for the cost dashboard
# Or query the API:
curl http://localhost:9090/allocation/compute?window=7d
§05

Related on TokRepo

§06

Common pitfalls

  • Cloud provider pricing APIs require proper IAM permissions; misconfigured access leads to inaccurate cost data
  • On-premise clusters need manual pricing configuration since there is no cloud billing API to query
  • OpenCost measures resource allocation, not actual utilization; over-provisioned pods show higher costs than they truly consume

Questions fréquentes

Which cloud providers does OpenCost support?+

OpenCost supports AWS, Google Cloud, Azure, and on-premise clusters. For cloud providers, it pulls actual pricing data from billing APIs. For on-premise setups, you configure custom per-resource pricing.

Is OpenCost free?+

Yes. OpenCost is open-source under the Apache 2.0 license and a CNCF sandbox project. There are no licensing fees. Kubecost offers a commercial version with additional features built on the same core.

How accurate are the cost estimates?+

OpenCost uses actual cloud provider pricing data and real resource allocation from the Kubernetes API. Accuracy depends on correct pricing source configuration. Spot instance and reserved pricing require additional setup.

Can I see costs per team or application?+

Yes. OpenCost breaks down costs by namespace, label, deployment, pod, and container. If your teams use separate namespaces or consistent labels, you get automatic per-team cost attribution.

Does OpenCost work with GPU workloads?+

Yes. OpenCost tracks GPU resource allocation and costs. It supports NVIDIA GPU pricing on cloud providers, making it useful for teams running AI training or inference workloads on Kubernetes.

Sources citées (3)

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires