How ClusterCost Uses a Single Go Agent to Track All Your Costs

Under the hood of the agent: metrics, price sheets, and guardrails in one small binary.

L
Linda Cuanca
1 min read

ClusterCost’s agent is one binary that handles data collection, pricing, and enforcement.

  • Metrics ingest: reads pod requests/limits and p95 usage from the metrics API.
  • Pricing: loads your price sheet (on-demand, spot, storage, egress) into memory.
  • Computation: calculates cost per namespace/service and waste in seconds.
  • Guardrails: optional admission webhook for labels, limits, and budget caps.
  • Outputs: emits metrics, JSON reports, and PR comments via the CLI.
  • Network view: captures egress and cross-AZ bytes so traffic costs sit next to compute.
  • Caching: keeps cluster metadata hot so CLI queries return fast without extra infra.

Keeping everything in one process means lower footprint and fewer moving parts to upgrade.***

👨‍💻

Linda Cuanca

Head of Sales

Read Next

Join 1,000+ FinOps and platform leaders

Get Kubernetes and ECS cost tactics delivered weekly.