Shruti
Shruti

Reputation: 103

GCP quota and billing at user level

I am trying to see if there is a way for me to bill and restrict users based on their usage of resources across projects on our GCP instance. I know billing and quotas officially are at the project level, but we will have shared projects which will be used by people in seperate cost codes. I was thinking of building an API per cost code, and having people access the resources only through there, but I'm not sure if this is the best idea.

Upvotes: 2

Views: 1717

Answers (1)

dany L
dany L

Reputation: 2654

You can use a grouping system where you use labels to track your resources. Using labels such as cost center, service and environment will allow you to track your GCP resource usage and spending.

Then you can export your billing data to BigQuery where it can be filtered and segmented by labels.

In terms of notifications and restricting access, you may set up budget alerts by following this documentation. Together with Cloud Pub/Sub budget notifications and Cloud Functions, you can have more control on your spending by capping costs and stopping your billing.

Upvotes: 1

Related Questions