GCP

Export Cloud Billing data to BigQuery

Google Cloud Platform provides a service called "BigQuery" which enables to export detailed Google Cloud billing data to a Bigquery dataset.

a. Create Billing Account

  1. Log into GCP console portal(https://console.cloud.google.com/) and it will navigate to OverView Tab.

  1. At the top left corner, find an option to create a Project which helps to monitor multiple Billing Account. Select either an already existing project or create new as needed.

  1. Give a friendly Project name and create the Project.

  1. Once Project is created, navigate to "IAM & Actions" -> "Service Accounts" found at the top left corner navigation options.

  1. On navigating to Service Account page, you will find a list of Billing Accounts monitored under the single Project.

  1. Create new Billing Account (Service Account).

  2. Give a friendly name for the service account and create it.

  1. To have access to a more comprehensive set of Google Cloud billing data for the analysis needs, it is recommend to enable Cloud Billing data export to BigQuery at the same time as Billing Account creation.

  2. Navigate to "BigQuery" -> "Data Transfers" at the navigation bar.

  1. Enable the Bigquery Data Transfer to access the bigquery SQL Workspace to get the cost export data.

Creating a GCP Connection

To create a new connection, follow these steps:

  1. Log in to Hybr Admin portal and navigate to Reporting → Data Source -> Connections page.

  1. List of connection created will be listed in Connection tab.

  2. Create a GCP Connection using Create Connection button.

  1. Select Connection category as "GCP".

  2. Give a friendly connection name to the GCP connection.

  1. Provide necessary connection details asked in the second step for Gcp Connection Creation.

ParameterDescription

Connection Type

Specifies the type of the configuration file, which should be set to "service_account" for a GCP service account.

Access Key Id

Specifies the ID of the private key associated with the service account.

Access Key Secret

Specifies the private key contents associated with the service account, which is used for authentication.

Billing Account Id

Specifies the "Id" of the billing account created in the GCP project.

Billing Account Name

Specifies the "Name" of the billing account created in the GCP project

Project Id

Specifies the ID of the GCP project where the service account is created.

Dataset Id

Specifies to a unique identifier that is used to identify and manage datasets in various GCP services

Client Id

Specifies the client ID associated with the service account.

Client Email

Specifies the email address associated with the service account, which is used for authentication.

Token URL

Specifies the URL for the token endpoint used for exchanging authorization codes for access tokens.

Service Account Impersonation URL

Specifies the URL where the x509 public certificates can be retrieved for the service account, which is used for token validation.

  1. Configure the Cost export start date, which ensures from when the cost export records should be collected for individual connection.

  2. Save the changes.

Editing a GCP Connection

If you want to make changes to an existing connection, follow these steps.

  1. Log in to Hybr Admin portal and navigate to Reporting → Data Sources -> Connections page.

  2. Select the connection and click on the "Edit" button

  1. Make the desired changes to your connection.

  2. Save your changes.

Last updated