Este conteúdo não está disponível no idioma selecionado.
Chapter 1. Creating an unfiltered Google Cloud integration
In the Integrations page, you can create a Google Cloud integration and configure your Google Cloud account to give cost management access
- If you want to create a filtered Google Cloud integration, do not complete the following steps. Instead, go to Creating a filtered Google Cloud integration.
- Google Cloud is a third-party product and its console and documentation can change. The instructions for configuring the third-party integrations are correct at the time of publishing. For the most up-to-date information, see the Google Cloud Documentation.
Prerequisites
You must have a Red Hat account user with Cloud Administrator permissions before you can add integrations to cost management.
1.1. Adding your Google Cloud account as an integration Copiar o linkLink copiado para a área de transferência!
You can add your Google Cloud account as an integration. After adding a Google Cloud integration, the cost management application processes the cost and usage data from your Google Cloud account and makes it viewable.
Prerequisites
- To add data integrations to cost management, you must have a Red Hat account with Cloud Administrator permissions.
Procedure
-
From Red Hat Hybrid Cloud Console, click Settings Menu
> Integrations.
- On the Settings page, in the Cloud tab, click .
- In the Add a cloud integration wizard, select Google Cloud as the cloud provider type and click .
- Enter a name for your integration. Click .
- In the Select application step, select Cost management and click .
1.2. Creating a Google Cloud project Copiar o linkLink copiado para a área de transferência!
Create a Google Cloud project to collect and store your cost reports for Red Hat to consume.
Prerequisites
-
You must have the
resourcemanager.projects.create
permission in Google Cloud.
Procedure
Google Cloud documentation provides the most up-to-date guidance for working in their console. Follow the instructions in Creating and managing projects. For reference, the following steps summarize the key points:
-
Click
. - Enter a Project name and select your billing account.
- Select Organization.
- Enter the parent organization in Location.
- Click .
In cost management:
- On the Project page, enter your Project ID.
- Select I am OK with sending the default data set to cost management.
- Click .
1.3. Creating a Google Cloud Identity and Access Management role Copiar o linkLink copiado para a área de transferência!
A custom Identity and Access Management (IAM) role for cost management gives access to only the cost-related resources that are required for a Google Cloud integration. It does not give access to any non-essential information.
Prerequisites
You must have the following permissions in Google Cloud Console:
-
resourcemanager.projects.get
-
resourcemanager.projects.getIamPolicy
-
resourcemanager.projects.setIamPolicy
Procedure
Google Cloud documentation provides the most up-to-date guidance for working in their console. Follow the instructions in Understanding roles and Creating and managing custom roles. For reference, the following steps summarize the key points:
-
In Google Cloud Console, click
. - Select the project that you created.
- Click .
- Enter a Title, Description and ID for the role.
- Click .
In Enter property name or value, search for and select the following permissions for your custom role:
-
bigquery.jobs.create
-
bigquery.tables.getData
-
bigquery.tables.get
-
bigquery.tables.list
-
- Click and then click .
In cost management:
- In the Add a cloud integration wizard, on the Create IAM role page, click .
1.4. Adding a billing service account member Copiar o linkLink copiado para a área de transferência!
Create a billing service account member that can export cost reports to Red Hat Hybrid Cloud Console in your project.
Procedure
Google Cloud documentation provides the most up-to-date guidance for working in their console. Follow the instructions in Understanding roles and Creating and managing custom roles. For reference, the following steps summarize the key points:
-
Click
. - Select the project that you created.
- Click .
Paste the following principal into the New principals field:
billing-export@red-hat-cost-management.iam.gserviceaccount.com
billing-export@red-hat-cost-management.iam.gserviceaccount.com
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - In the Assign roles section, enter the IAM role that you created.
- Click .
Verification steps
-
Navigate to
. - Verify that the new member is present with the correct role.
In cost management:
On the Assign access page, click .
1.5. Creating a BigQuery dataset Copiar o linkLink copiado para a área de transferência!
Create a BigQuery dataset to store your billing data.
Prerequisites
You must have the bigquery.datasets.create
permission.
Procedure
Google Cloud documentation provides the most up-to-date guidance for working in their console. Follow the instructions in Create a BigQuery dataset. For reference, the following steps summarize the key points:
- Click .
-
In the Explorer panel click the more options menu
next to your project name and click Create dataset.
- Name your dataset.
- Click Create.
In cost management:
- In the Add a cloud integration wizard, on the Create dataset page, enter the name of the dataset that you created.
- Click .
1.6. Exporting billing data to BigQuery Copiar o linkLink copiado para a área de transferência!
Configure Google Cloud to send cost and usage billing data automatically to the BigQuery dataset that you created.
Google Cloud documentation provides the most up-to-date guidance for working in their console. Follow the instructions in Export Cloud Billing data to BigQuery. For reference, the following steps summarize the key points:
-
Click
. - Click Detailed usage cost section. in the
- Select the cost management Project and Billing export dataset that you created.
- Click .
Verification steps
In the Detailed usage cost section of Google Cloud Console, verify that there is an Enabled checkmark next to the correct Project name and Dataset name.
In cost management:
- In the Add a cloud integration wizard, on the Billing export page, click .
- On the Review details page, review the information about your integration and click .
1.6.1. Viewing billing tables in BigQuery Copiar o linkLink copiado para a área de transferência!
You may want to review the metrics collected and sent to cost management. This can also assist with troubleshooting incorrect or missing data in cost management.
Google may take several hours to export billing data to your BigQuery dataset.
Prerequisites
-
Access to Google Cloud console with
bigquery.dataViewer
role
Procedure
-
Navigate to
in Google Cloud Console. - Select the cost management project in the Explorer panel.
-
Click
gcp_billing_export_v1_xxxxxx_xxxxxx_xxxxxx
table under the cost management dataset. - Click the Preview tab to view the metrics.