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

Note
  • 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

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

  1. From Red Hat Hybrid Cloud Console, click Settings Menu Settings icon > Integrations.
  2. On the Settings page, in the Cloud tab, click Add integration.
  3. In the Add a cloud integration wizard, select Google Cloud as the cloud provider type and click Next.
  4. Enter a name for your integration. Click Next.
  5. In the Select application step, select Cost management and click Next.

1.2. Creating a Google Cloud project

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:

In Google Cloud Console:

  1. Click IAM & Admin Create a Project.
  2. Enter a Project name and select your billing account.
  3. Select Organization.
  4. Enter the parent organization in Location.
  5. Click Create.

In cost management:

  1. On the Project page, enter your Project ID.
  2. Select I am OK with sending the default data set to cost management.
  3. Click Next.

1.3. Creating a Google Cloud Identity and Access Management role

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:

  1. In Google Cloud Console, click IAM & Admin Roles.
  2. Select the project that you created.
  3. Click + Create role.
  4. Enter a Title, Description and ID for the role.
  5. Click + ADD PERMISSIONS.
  6. 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
  7. Click ADD and then click CREATE.

In cost management:

  1. In the Add a cloud integration wizard, on the Create IAM role page, click Next.

1.4. Adding a billing service account member

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:

In Google Cloud Console:

  1. Click IAM & Admin IAM.
  2. Select the project that you created.
  3. Click Grant Access.
  4. Paste the following principal into the New principals field:

    billing-export@red-hat-cost-management.iam.gserviceaccount.com
    Copy to Clipboard Toggle word wrap
  5. In the Assign roles section, enter the IAM role that you created.
  6. Click SAVE.

Verification steps

  1. Navigate to IAM & Admin IAM.
  2. Verify that the new member is present with the correct role.

In cost management:

On the Assign access page, click Next.

1.5. Creating a BigQuery dataset

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:

In Google Cloud Console:

  1. Click BigQuery.
  2. In the Explorer panel click the more options menu more options next to your project name and click Create dataset.
  3. Name your dataset.
  4. Click Create.

In cost management:

  1. In the Add a cloud integration wizard, on the Create dataset page, enter the name of the dataset that you created.
  2. Click Next.

1.6. Exporting billing data to BigQuery

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:

In Google Cloud Console:

  1. Click Billing Billing export.
  2. Click EDIT SETTINGS in the Detailed usage cost section.
  3. Select the cost management Project and Billing export dataset that you created.
  4. Click SAVE.

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:

  1. In the Add a cloud integration wizard, on the Billing export page, click Next.
  2. On the Review details page, review the information about your integration and click Add.

1.6.1. Viewing billing tables in BigQuery

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.

Note

Google may take several hours to export billing data to your BigQuery dataset.

Prerequisites

  • Access to Google Cloud console with bigquery.dataViewer role

Procedure

  1. Navigate to Big Data BigQuery in Google Cloud Console.
  2. Select the cost management project in the Explorer panel.
  3. Click gcp_billing_export_v1_xxxxxx_xxxxxx_xxxxxx table under the cost management dataset.
  4. Click the Preview tab to view the metrics.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat