Reputation: 31
I've added labels to the projects in our GCP Console, so that I can add the job numbers to our billing report ( key: job_number value:i12345 ). Despite adding the labels, cost table shows empty Labels column.
Any idea how to fix it via console?
thanks, Monika
Upvotes: 3
Views: 3211
Reputation: 2605
Although permissions on projects, as well as primitive roles Project Owner, Editor or Viewer, allow to view reports for those projects, to see the billing reports and configured labels for all Cloud projects that are linked to the billing account require the billing.accounts.getSpendingInformation
permission on the linked Cloud Billing Account. This permission is part of the IAM billing roles
See Cloud IAM > Doc > Understanding roles > Predefined roles > Billing roles
To query usage by project label, the project.labels
field in the Billing Export data can be used.
Upvotes: 4