Rechercher

Ce contenu n'est pas disponible dans la langue sélectionnée.

Chapter 1. Creating a Google Cloud integration

download PDF

To add a Google Cloud account to hybrid committed spend, you must configure your Google Cloud account to provide metrics, then add it as a integration from the Red Hat Hybrid Cloud Console user interface.

Note

You must have a Red Hat account user with Cloud Administrator permissions before you can add integrations to hybrid committed spend.

To configure your Google Cloud account to be a hybrid committed spend integration, you must complete the following tasks:

  • Create a Google Cloud project for your hybrid committed spend data.
  • Create a bucket for filtered reports.
  • Billing service account member with the correct role to export your data to hybrid committed spend.
  • Create a BigQuery dataset to contain the cost data.
  • Create a billing export that sends the hybrid committed spend data to your BigQuery dataset.

As you will complete some of the following steps in the Google Cloud Console, and some steps in the hybrid committed spend user interface, keep both applications open in a web browser.

Note

Because third-party products and documentation can change, instructions for configuring the third-party integrations provided are general and correct at the time of publishing. For the most up-to-date information, see the Google Cloud Platform documentation.

Add your Google Cloud integrations to hybrid committed spend from the Integrations page.

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 hybrid committed spend 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 Hybrid committed spend and click Next.

1.2. Creating a Google Cloud project

Create a Google Cloud project to gather and send your cost reports to hybrid committed spend.

Prerequisites

  • Access to Google Cloud Console with resourcemanager.projects.create permission

Procedure

  1. In the Google Cloud Console click IAM & Admin Create a Project.
  2. Enter a Project name in the new page that appears and select your billing account.
  3. Select the Organization.
  4. Enter the parent organization in the Location box.
  5. Click Create.
  6. In the hybrid committed spend Add a cloud integration wizard, on the Project page, enter your Project ID.
  7. To send the default data to Red Hat automatically, select I am OK with sending the default data set to hybrid committed spend and click Next.

Verification steps

  1. Navigate to the Google Cloud Console Dashboard
  2. Verify the project is in the menu bar.

Additional resources

1.3. Creating a Google Cloud Identity and Access Management role

A custom Identity and Access Management (IAM) role for hybrid committed spend gives access to specific cost related resources required to enable a Google Cloud Platform integration and prohibits access to other resources.

Prerequisites

  • Access to Google Cloud Console with these permissions:

    • resourcemanager.projects.get
    • resourcemanager.projects.getIamPolicy
    • resourcemanager.projects.setIamPolicy
  • Google Cloud project

Procedure

  1. In the Google Cloud Console, click IAM & Admin Roles.
  2. Select the hybrid committed spend project from the dropdown in the menu bar.
  3. Click + Create role.
  4. Enter a Title, Description and ID for the role. In this example, use customer-data-role.
  5. Click + ADD PERMISSIONS.
  6. Use the Enter property name or value field to search and select these four permissions for your custom role:

    • bigquery.jobs.create
    • bigquery.tables.getData
    • bigquery.tables.get
    • bigquery.tables.list
  7. Click ADD.
  8. Click CREATE.
  9. In the hybrid committed spend Add a cloud integration wizard, on the Create IAM role page, click Next.

Additional resources

1.4. Adding a billing service account member to your Google Cloud project

You must create a billing service account member that can export cost reports to Red Hat Hybrid Cloud Console in your project.

Prerequisites

  • Access to Google Cloud Console with these permissions:

    • resourcemanager.projects.get
    • resourcemanager.projects.getIamPolicy
    • resourcemanager.projects.setIamPolicy
  • Google Cloud project
  • A hybrid committed spend Identity and Access Management (IAM) role

Procedure

  1. In the Google Cloud Console, click IAM & Admin IAM.
  2. Select the hybrid committed spend project from the dropdown in the menu bar.
  3. Click ADD.
  4. Paste the IAM role you created into the New principals field:

    billing-export@red-hat-cost-management.iam.gserviceaccount.com
  5. In the Assign roles section, assign the IAM role you created. In this example, use customer-data-role.
  6. Click SAVE.
  7. In the hybrid committed spend Add a cloud integration wizard, on the Assign access page, click Next.

Verification steps

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

Additional resources

1.5. Creating a Google Cloud BigQuery dataset

Create a BigQuery dataset to collect and store the billing data for hybrid committed spend.

Prerequisites

  • Access to Google Cloud Console with bigquery.datasets.create permission
  • Google Cloud project

Procedure

  1. In Google Cloud Console, click Big Data BigQuery.
  2. Select the hybrid committed spend project in the Explorer panel.
  3. Click CREATE DATASET.
  4. Enter a name for your dataset in the Dataset ID field. In this example, use CustomerData.
  5. Click CREATE DATASET.

1.6. Exporting Google Cloud billing data to BigQuery

Enabling a billing export to BigQuery sends your Google Cloud billing data (such as usage, cost estimates, and pricing data) automatically to the hybrid committed spend BigQuery dataset.

Prerequisites

Procedure

  1. In the Google Cloud Console, click Billing Billing export.
  2. Click the Billing export tab.
  3. Click EDIT SETTINGS in the Detailed usage cost section.
  4. Select the hybrid committed spend Project and Billing export dataset you created in the dropdown menus.
  5. Click SAVE.
  6. In the hybrid committed spend Add a cloud integration wizard, on the Billing export page, click Next.
  7. In the hybrid committed spend Add a cloud integration wizard, on the Review details page, click Add.

Verification steps

  1. Verify a checkmark with Enabled in the Detailed usage cost section, with correct Project name and Dataset name.
Red Hat logoGithubRedditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez leBlog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

© 2024 Red Hat, Inc.