Overview
Chargeback for storage and partitions lets you visualize the cost allocation of clusters based on two key metrics: bytes stored (the amount of data stored across all topic partitions, measured in GB-hours) and partition count (the number of partitions
maintained by the cluster, measured in partition-hours).
Costs are calculated by multiplying these accumulated metrics by your configured rates (cost per GB per hour for storage, cost per partition per hour for partitions).
You can view data from the perspective of overall cost, storage, or number of partitions.
- Overall cost: displays the total dollar cost by adding together the storage and number of partitions costs
- Storage: shows the bytes stored for a cluster, also showing the cost of said bytes, and what percentage this cost makes up of the total storage cost across all clusters for the selected period
- Number of partitions: shows the partition count for a cluster, also showing the cost of said partitions, and what percentage this cost makes up of the total number of partitions cost across all clusters for the selected period
Using Chargeback without Gateway
The measured period can be changed from 7D, 30D, 6M, 12M or YTD (Year To Date).
You can see the topic cost per hour and cost of bytes stored per GB hour for each cluster connected to Console.
You can easily update the cost rates for one or more clusters in this same section.
How metrics are calculated
Once metrics are aggregated for the selected time period, Console calculates costs using the configured cost rates.
Cost:
If cost is not set, will be defaulted to 0. The maximum allowed cost for each is 9.99999999.
Storage
Number of partitions
Overall Cost
(total_byte_hours / 1,073,741,824) × bytes_stored_per_hour_cost
// Where `1,073,741,824` is 1 GB in bytes (1024³).
total_partition_hours × partition_count_per_hour_cost
storage_cost + partition_cost
Percentage:
percentage = (cluster_cost_for_period_and_view / total_cost_for_period_and_view) × 100
Bytes/Number of partitions
The bytes or number of partitions value represents an average during the selected time window.
bytes = total_byte_hours / hours_in_period
partitions = total_partition_hours / hours_in_period
No value is displayed as we cannot combine bytes and number of partitions (only cost and percentage)
Example: A cluster with 7,200 partition-hours over a 31-day period (744 hours):
- Average:
7,200 / 744 ≈ 9.68 → Average of ~10 partitions throughout the period
The accuracy of metrics depends on the collection frequency. A shorter interval (e.g., 30 minutes) captures more granular usage patterns, while a longer interval (e.g., two hours) may miss short-lived spikes.The default frequency is one hour.Note that deleting a cluster will remove related Chargeback metrics.
Export Chargeback data
To facilitate external analysis and reporting, the data shown in the table can be exported as a CSV file.
To export the data, click Export all at the top right of the graph.
The default exported file name will be Chargeback_<startDate>_<endDate>_<activeTabName>.csv.
1. Specify what data to export
The exported data will depend on the currently selected tab:
- the Overall cost tab will export the cost values
- the Storage tab will export the cost values of produced/consumed bytes
- the Number of partitions tab will export the cost values of partition count
2. Select the time period
The exported data will be formatted based on the selected time period:
- 7D or 30D will export the relevant data split by days
- 6M, 12M or YTD will export the relevant data split by months