Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloud costs integration is not working in gcp #2680

Open
Puvendhan opened this issue Apr 2, 2024 · 4 comments
Open

Cloud costs integration is not working in gcp #2680

Puvendhan opened this issue Apr 2, 2024 · 4 comments
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)

Comments

@Puvendhan
Copy link

Puvendhan commented Apr 2, 2024

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?

@Puvendhan
Copy link
Author

Puvendhan commented Apr 2, 2024

Hi @here, Can someone look into this?

@mattray mattray added opencost OpenCost issues vs. external/downstream P1 Estimated Priority (P0 is highest, P4 is lowest) E2 Estimated level of Effort (1 is easiest, 4 is hardest) and removed needs-triage needs-follow-up labels Apr 2, 2024
@mattray
Copy link
Collaborator

mattray commented Apr 2, 2024

Could you review the docs here: https://docs.kubecost.com/install-and-configure/install/cloud-integration/gcp-out-of-cluster#invalidquery-400-error-for-gcp-integration

If that's the issue and this fixes it, please let us know and we'll add that to the OpenCost docs.

@asuprabhat
Copy link

asuprabhat commented Apr 23, 2024

Facing same issue in gcp, detailed billing export is also being used as per above suggestion. Pod is going to out of memory even though how big resource limits are.

@mattray
Copy link
Collaborator

mattray commented Apr 24, 2024

@asuprabhat we don't have good sizing docs on cloud costs, can you change the limits and see if it works? If that works we can try bumping the values up a bit and adding that to the Troubleshooting docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

3 participants