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

feat: calculate monthly cost for bucket #650

Merged
merged 7 commits into from
Mar 24, 2023
Merged

Conversation

eneskaya
Copy link
Contributor

@eneskaya eneskaya commented Mar 23, 2023

This PR will add cost estimation for GCP buckets. It's not very trivial to get the bucket size unfortunately, so we use the GCP Monitoring API to gather metrics about the total bucket size. The cost estimation is done based on us-central-1 region only for now.

Note that for this to work, you'll need the monitoring.timeSeries.list permission in your service account.

@eneskaya eneskaya force-pushed the feature/tech-1000 branch from 6661f0d to 5413b70 Compare March 23, 2023 14:07
@eneskaya eneskaya marked this pull request as ready for review March 23, 2023 16:52
@eneskaya eneskaya requested a review from mlabouardy March 23, 2023 16:55
@mlabouardy mlabouardy added this to the v3.0.8 milestone Mar 24, 2023
@mlabouardy mlabouardy added the gcp label Mar 24, 2023
providers/gcp/storage/storage.go Outdated Show resolved Hide resolved
@mlabouardy mlabouardy merged commit dc425cd into develop Mar 24, 2023
@mlabouardy mlabouardy deleted the feature/tech-1000 branch March 24, 2023 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants