Cloud costs integration is not working in gcp #2680
Labels
E2
Estimated level of Effort (1 is easiest, 4 is hardest)
needs-follow-up
opencost
OpenCost issues vs. external/downstream
P1
Estimated Priority (P0 is highest, P4 is lowest)
Hi Team,
Gcp cloud cost integration is not working and getting below error from the opencost pod logs.
2024-04-02T06:26:37.592614698Z ERR CloudCost[xxxx/xxxx.gcp_billing_cost_data]: ingestor: build failed for window [2024-03-15T00:00:00+0000, 2024-03-22T00:00:00+0000): error retrieving CUD rates: GetFlexibleCUDRates: queryCUDAmountPayed: query error BigQueryQuerier: Query: error reading query results: googleapi: Error 400: Unrecognized name: _PARTITIONTIME at [7:28], invalidQuery
I followed the below steps as per https://www.opencost.io/docs/configuration/gcp
Created the bigquery dataset and table using the below commands
bq mk xxxx:detailedbilling
bq mk --table --schema timestamp:TIMESTAMP,resource_id:STRING,cost_amount:FLOAT xxxx:detailedbilling.gcp_billing_cost_data
What else is missing? Can anyone help me with the right schema format?
The text was updated successfully, but these errors were encountered: