Hey, We have billing reporting enabled GCP and all the detailed costs goes to BQ Table. I was analysing the table and found that the cost for bigquery storage is reported at dataset level. I would like to know this cost at table level so that i can attribute it to the teams.
Is there any way to attribute the cost of tables within a dataset
Solved! Go to Solution.
Directly attributing BigQuery storage costs to individual tables within a dataset is not a built-in feature in standard Cloud Billing exports to BigQuery. The billing data granularity is typically at the dataset level. However, there are strategies you can employ to estimate or indirectly attribute table-level storage costs in BigQuery:
Table Size Estimation and Proportional Allocation:
Using Custom Labels:
Leveraging BigQuery Audit Logs (with Limitations):
Third-Party Tools or Custom Solutions:
Additional Tips:
Directly attributing BigQuery storage costs to individual tables within a dataset is not a built-in feature in standard Cloud Billing exports to BigQuery. The billing data granularity is typically at the dataset level. However, there are strategies you can employ to estimate or indirectly attribute table-level storage costs in BigQuery:
Table Size Estimation and Proportional Allocation:
Using Custom Labels:
Leveraging BigQuery Audit Logs (with Limitations):
Third-Party Tools or Custom Solutions:
Additional Tips:
just to voice something here... this doesn't sound solved at all. This sounds like BQ doesn't provide the data that's being asked for but is guiding estimations that could be off depending on cost structure.