mrkeyoor.comAsk

opencost/opencosttested 27 Aug 2026commit ba0e947

opencost review

Use OpenCost for Kubernetes cost allocation when your team can maintain Helm, complete Prometheus coverage, and billing reconciliation.

  • Install 73 s
  • Build 207 s
54/54tests passed
  • 458 packages
Self-Hostedevaluationupdated 01 Nov 2026
+7stars / 7d

Choose OpenCost for Kubernetes workload cost allocation if your team can maintain Helm and Prometheus. OpenCost allocates costs by Kubernetes cluster, node, namespace, controller, service, or pod. Our August 27, 2026 sandbox run recorded successful source command outcomes at commit ba0e947; it did not validate a deployed cost service.

Verdict

Use OpenCost for Kubernetes cost allocation when your team can maintain Helm, complete Prometheus coverage, and billing reconciliation. Start with a known workload and reconcile its allocation before using the results for chargeback. Choose Infracost for estimates of proposed infrastructure changes or Goldilocks for resource-request recommendations.

We ran it

Lab card: what happened when we ran opencost
Lab card from our sandbox run
Screenshot of opencost (opencost.io)
opencost.io
Install✓ · 73s458 packages
Build✓ · 207s
Tests✓ · 54s54 passed · 0 failed of 54 (go test)
Repo976 files~230,564 lines of source · 75.1 MB · 16 CI workflows · tests dir

Answers from our run

Does opencost build from source?

Dependencies installed in 73 seconds (458 packages), and the build succeeded in 207 seconds. We cloned commit ba0e947 into a clean Debian container with 3 CPUs and no project-specific setup.

Do opencost's tests pass?

Yes. The project's own test command finished in 54 seconds and reported 54 passed, 0 failed (go test).

Who should not use opencost?

Teams whose immediate task is estimating proposed infrastructure changes; consider Infracost.

What are the alternatives to opencost?

Infracost, Goldilocks. Use OpenCost for Kubernetes cost allocation when your team can maintain Helm, complete Prometheus coverage, and billing reconciliation.

Setup3/5The documented Helm path is usable with operating prerequisites: Kubernetes and a complete Prometheus query endpoint require preparation.
Docs4/5The supplied README broadly covers installation, pricing integrations, query access, and MCP configuration. Deployment instructions were not exercised.
Community3/5Last push on 2026-08-26 and 6,821 stars.Editor’s note: One release's contributors and advertised Slack and meeting access establish participation, but do not establish community breadth, support responsiveness, or effectiveness.
Maturity4/5Assesses documented project structure and recorded source checks: a specification, Go implementation, release record, and successful command outcomes are present. Runtime reliability and billing accuracy remain unvalidated.

How we score

Discussed on

  1. hnKubernetes Cost Management with the New OpenCost Plugin for Headlamp57 points
  2. hnOpenCost Adds Open Source Multi-Cloud Cost Monitoring23 points
  3. hnShow HN: Open Source Cloud Costs Monitoring in Docker19 points
  4. hnOpenCost: Open-source cost monitoring for cloud native environments14 points
  5. hnMonitor all your IT Costs in real-time with OpenCost13 points

Who it’s for

Platform engineers allocating costs across shared Kubernetes namespaces and workloads.
FinOps teams prepared to reconcile allocation results with their billing data.
Operators who can maintain Helm configuration and a complete Prometheus query endpoint.
Teams evaluating documented API, metrics, or optional MCP access to cost data.

Who it’s NOT for

Teams whose immediate task is estimating proposed infrastructure changes; consider Infracost.
Teams seeking a starting point for Kubernetes resource requests; consider Goldilocks.
Operators with sharded Prometheus who cannot provide a global query endpoint.
Anyone requiring demonstrated billing accuracy or deployment readiness from this source-check record.

Setup reality

The stored harness records installation as successful in 73 seconds, the build step as successful in 207 seconds, and the test step as successful in 54 seconds. Each step has exit code 0 and no recorded timeout. The dependency count is 458.

The supported installation documented in the pinned README uses the official Helm chart on Kubernetes 1.20 or newer. Prometheus routing needs separate attention, and the web UI lives in another repository. The body explains the package-summary limits and the deployment checks still required.

Should you use OpenCost?

Choose OpenCost when you need to attribute Kubernetes spending to workloads and can maintain the supporting metrics infrastructure. OpenCost allocates costs by Kubernetes cluster, node, namespace, controller, service, or pod. Its README at the measured commit also documents AWS, Azure, and GCP cost monitoring and custom CSV pricing for on-premises clusters.

The decision depends on data completeness. Successful source checks cannot establish whether your Prometheus endpoint covers every shard or whether configured prices reconcile with your bills.

What the recorded run establishes

The stored run took place on August 27, 2026, at commit ba0e947, full revision ba0e947ad0fad33e18ab35bf1edf6efc99d07422. No new execution was performed for this correction.

Our sandbox recorded the build step as successful in 207 seconds with exit code 0. Installation separately took 73 seconds, and the test step took 54 seconds. The build output tail is vet-exit:0; the supplied record does not contain a complete build transcript.

The stored parser summary reports 54 passed, 0 failed, and 54 total. The raw fields identify package outcomes: 54 packages marked successful, 0 marked failed, and 9 with no test files. These figures do not establish 54 individual test cases or exhaustive unique coverage. The supplied tail repeats package entries under a summary marker; those entries must not be added together. No complete-log reconciliation was performed.

The recorded container had 3 CPUs, 8 GB of memory, and image golang:1.24-bookworm. The installation tail reports downloading go1.26.4, so the image label alone does not establish the compiler version used throughout the run. The audit field is null and provides no advisory result or scan coverage.

The run did not validate a live Helm installation, provider billing reconciliation, production query behavior, or MCP client responses. The current MrKeyoor testing methodology explains command-outcome reporting, but does not establish which methodology revision governed this older run.

Check Prometheus coverage before trusting allocation

The pinned README directs installation through the official Helm chart on Kubernetes 1.20 or newer and says standalone manifests have been removed. It places the web UI in opencost/opencost-ui, so this Go checkout is only part of the installation.

For sharded Prometheus, the README calls for a global query endpoint such as Thanos Query, Cortex, or Mimir. Pointing OpenCost at a single Prometheus pod can produce incomplete or intermittent export results.

Before using allocations for chargeback, select a known workload and time window. Verify that its resource data reaches the query endpoint, then compare its allocation with the pricing inputs and billing records you intend to use. This is a recommended acceptance check, not a sandbox result.

Validate MCP access separately

The pinned README documents an optional HTTP MCP server, disabled by default and using port 8081 when enabled. Its documented tools cover allocation, assets, cloud costs, and efficiency recommendations.

If agent access is your reason for choosing OpenCost, test the client connection and compare its answers with the underlying cost queries for the same window and aggregation. The source-check record does not establish that this connection works in your deployment.

Choose alternatives by the task

Infracost estimates infrastructure costs before changes are deployed. Its primary documentation describes estimates for Terraform, Terragrunt, CloudFormation, and AWS CDK, with results available in development workflows and pull requests. Choose it when reviewing a proposed infrastructure change. Its documented role addresses an earlier decision than OpenCost's workload allocation.

Goldilocks uses Vertical Pod Autoscaler recommendations to suggest resource requests. Its README explains that it creates a VPA for each workload in a namespace and queries those objects for recommendations. Choose it when request sizing is the immediate task. These recommendations and OpenCost's cost allocation answer different questions and can be useful together.

What the editorial scores mean

The numeric ratings assess the documented prerequisites and evidence available here. They are not benchmarks or measurements of adoption. The rubric is: 1 indicates substantial documented obstacles; 2 indicates important gaps; 3 indicates a usable path with operating prerequisites; 4 indicates broad documented support with validation still required; 5 requires strong evidence across the stated dimension without a material unresolved evidence gap.

Setup ease is 3: the README provides a Helm installation path, but operators must prepare Kubernetes and Prometheus routing. Documentation is 4: the supplied README covers installation, pricing integrations, query access, and MCP configuration, although the deployment instructions were not exercised.

Community is unassessed. The supplied v1.121.1 release lists multiple contributors and a first-time contributor. The README advertises a CNCF Slack channel and biweekly working-group meetings. These establish visible participation and contact routes, but do not establish community breadth, support responsiveness, or effectiveness. They do not support a numeric community rating.

Maturity is 4 within the limited rubric of documented project structure and recorded source checks: the supplied evidence includes a specification, Go implementation, release record, and successful command outcomes. This rating does not establish runtime reliability or billing accuracy.

Alternatives

ProjectWhat it isPick it when
InfracostEstimates infrastructure costs before deployment within infrastructure-code workflows.Choose it when reviewing the cost of proposed infrastructure changes. Its estimates address an earlier decision than OpenCost's workload allocation.
GoldilocksUses Vertical Pod Autoscaler recommendations to suggest Kubernetes resource requests.Choose it when you need a starting point for resource requests. Use cost allocation separately when you also need to attribute workload spending.

What people are saying

  1. [github-trending] opencost/opencost

Sources

  1. OpenCost README
  2. OpenCost repository metadata
  3. OpenCost v1.121.1 release
  4. OpenCost contributing and source build guide
  5. Issue 4020: custom pricing division report
  6. Issue 3888: image and embedded binary mismatch

More self-hosted reviews