Ce contenu n'est pas disponible dans la langue sélectionnée.
Chapter 1. Creating a Google Cloud integration
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.
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.
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
-
From Red Hat Hybrid Cloud Console, click Settings Menu
> Integrations.
- On the Settings page, in the Cloud tab, click Add integration.
- In the Add a cloud integration wizard, select Google Cloud as the cloud provider type and click Next.
- Enter a name for your integration. Click Next.
- 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
-
In the Google Cloud Console click
. - Enter a Project name in the new page that appears and select your billing account.
- Select the Organization.
- Enter the parent organization in the Location box.
- Click .
- In the hybrid committed spend Add a cloud integration wizard, on the Project page, enter your Project ID.
- 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
- Navigate to the Google Cloud Console Dashboard
- Verify the project is in the menu bar.
Additional resources
- For additional information about creating projects, see the Google Cloud documentation Creating and managing projects.
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
-
In the Google Cloud Console, click
. - Select the hybrid committed spend project from the dropdown in the menu bar.
- Click .
-
Enter a Title, Description and ID for the role. In this example, use
customer-data-role
. - Click .
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
-
- Click .
- Click .
- In the hybrid committed spend Add a cloud integration wizard, on the Create IAM role page, click Next.
Additional resources
- For additional information about roles and their usage, see the Google Cloud documentation Understanding roles and Creating and managing custom roles.
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
Procedure
-
In the Google Cloud Console, click
. - Select the hybrid committed spend project from the dropdown in the menu bar.
- Click .
Paste the IAM role you created into the New principals field:
billing-export@red-hat-cost-management.iam.gserviceaccount.com
-
In the Assign roles section, assign the IAM role you created. In this example, use
customer-data-role
. - Click .
- In the hybrid committed spend Add a cloud integration wizard, on the Assign access page, click Next.
Verification steps
-
Navigate to
. - Verify the new member is present with the correct role.
Additional resources
- For additional information about roles and their usage, see the Google Cloud documentation Understanding roles and Creating and managing custom roles.
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
-
In Google Cloud Console, click
. - Select the hybrid committed spend project in the Explorer panel.
- Click .
-
Enter a name for your dataset in the Dataset ID field. In this example, use
CustomerData
. - Click .
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
- Access to Google Cloud Console with the Billing Account Administrator role
- Google Cloud project
- Billing service member with the cost management Identity and Access Management (IAM) role
- BigQuery dataset
Procedure
-
In the Google Cloud Console, click
. - Click the Billing export tab.
- Click Detailed usage cost section. in the
- Select the hybrid committed spend Project and Billing export dataset you created in the dropdown menus.
- Click .
- In the hybrid committed spend Add a cloud integration wizard, on the Billing export page, click Next.
- In the hybrid committed spend Add a cloud integration wizard, on the Review details page, click Add.
Verification steps
- Verify a checkmark with Enabled in the Detailed usage cost section, with correct Project name and Dataset name.