#4056·opencost

Multi-Cluster Reporting in Single Source of Data- Reporting pattern

Author: victorrodriguez1984Created Sep 17, 2026Updated Sep 19, 2026

Is your feature request related to a problem? Please describe. We are implementing the documented Multi-Cluster Single Source of Data architecture with:

  • Multiple Kubernetes clusters
  • A centralized Prometheus
  • A centralized OpenCost instance
  • Metrics labeled with cluster_id
  • No OpenCost API/UI exposed on spoke clusters

The documentation explains how to build the centralized architecture, but it is not clear how wide reporting, showback, chargeback, or scheduled exports are expected to be generated from the central OpenCost instance.

In our testing, centralized reporting only became possible when CURRENT_CLUSTER_ID_FILTER_ENABLED=false, allowing Allocation API responses to include all clusters.

 $ curl -s "http://localhost:9004/allocation?window=1d&aggregate=cluster" | jq '.data[0] | keys'
[
  "hub"
  "spoke-1",
  "spoke-n"
]

Describe the solution you'd like Clarify the recommended and supported approach for multi-cluster reporting in the Single Source of Data architecture.

Specifically:

  • Is CURRENT_CLUSTER_ID_FILTER_ENABLED=false the expected configuration for centralized reporting?
  • If not, what is the recommended way to generate organization-wide allocation reports from a single OpenCost deployment?

Describe alternatives you've considered

  • Running OpenCost API/UI in every cluster and aggregating externally.
  • Querying Prometheus directly and building reporting logic outside OpenCost.
  • Using CURRENT_CLUSTER_ID_FILTER_ENABLED=false to obtain centralized multi-cluster allocation data.

Additional context Related Issues

Multi-Cluster Single Source of Data

Our goal is to generate centralized showback, chargeback, and reporting outputs from a single OpenCost deployment without exposing OpenCost APIs on every spoke cluster.