# Connect to GCP

## GCP Integration Overview

Connecting Google Cloud Platform (GCP) to Finout enables seamless tracking and monitoring of your cloud expenses. By integrating GCP, Finout provides detailed insights into your usage, allowing you to visualize costs, optimize spending, and manage budgets across your GCP resources. The connection process involves securely linking your GCP billing account to Finout for real-time cost analysis.

**GCP Configuration Workflow:**

1. [Billing Export from GCP](#h_f20fd69ab4)
2. [Granting Finout Access to GCP](#h_3d95d5002b)
3. [Connect GCP to Finout](#id-3.-connect-gcp-to-finout)

## 1. Billing Export from GCP <a href="#h_f20fd69ab4" id="h_f20fd69ab4"></a>

{% hint style="warning" %}
**Important**: Skip this step if GCP detailed billing has already been activated.
{% endhint %}

1. Log in to your Google Cloud account and select **Billing**.<br>

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277354/f15820f081062ea191c9f024/nEDGgsVcdjGSnjdh1JQZ_8jxhxxgJSP9xOe0AMkEG6EH38d5eiyG9fY7JTLkqY9e3Yi0KrI7htFaP2CKtrl-wI7Ipa0JP_Dlf-ITvRQkrqotmxOPhusTOmmmZXnQMI-HOIzV9WkAoQ6pV10YNceCATA?expires=1725536700&#x26;signature=da7756818f2305facab4fcbac48006231f8947f287183e161a501e08df398337&#x26;req=1tdowlv%2FqHsp0xr0v9tnpOyz2ggOioYeKrZUiVyYKLLt5fBUnc7Mj%2BvrVcgo%0A" alt="" width="563"><figcaption></figcaption></figure></div>

   <div align="left"><figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FMbm0Ia5UAobnS0vIp3JM%2Fimage.png?alt=media&#x26;token=2d138e86-9359-40fd-9458-36ff1be8f992" alt=""><figcaption></figcaption></figure></div>
2. Choose **Billing export**.

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277355/0eace4c5abe6a77dd733ef2a/G4w-JXgJSHPLUvfZI9Doz6LKJxxgK5m8jOERUBbRHW0HyfpX_ueyK8wlOnD59YKhklElFvAsvglBiUpaUt3xdh6nIgIVS4j4bXBpQC9IwpaUdRz8YBmw6ajKq5OZAd7iVHDP3GrE-nzeW5JcRkXEgQQ?expires=1725536700&#x26;signature=e2dd2c19afa934f7be4956143a0379b61ba6dc7ee0594ea63fe7a6cab41d5fbe&#x26;req=1tdowlv%2FqXsp0xr0v9tnpGux%2B%2FzyONVMxQu1tmCSO6UoXSuo96OHrXVOuQqL%0A" alt="" width="563"><figcaption></figcaption></figure></div>
3. Make sure that the **Detailed usage cost** is enabled.

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277356/3360bc1ca1339aaa19f858f3/KPUnrNz1O0-HxH631yCFXnSI49ocTRq3kwI3X609C5UuuhIxNwxhAPVB9MsKK9zXhuo6vg4edhuMIrrF9kF9iYNdXbnuqrvHi29vGK_35hNcSy_Fjs-ksdwC3W9WxVeE7sDjWLHPL-wCjQpFn9pvGUo?expires=1725536700&#x26;signature=a47a553b5bf0c3ff68686e91518fba6e578458387126e865f5f561080669870e&#x26;req=1tdowlv%2Fqnsp0xr0v9tnpIjW0qgAxqI68g06D%2FjwhVZZEXNVE4TZeeB45u%2Bf%0A" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Note**: Enabling Detailed usage cost is a one-time action for the entire billing account. This setting applies to all projects under the billing account, so there is no need to enable it individually for each project.
{% endhint %}

## 2. Granting Finout Access to GCP <a href="#h_3d95d5002b" id="h_3d95d5002b"></a>

To connect GCP, Finout requires minimal permission to BigQuery in the project that is tied to your billing. To identify that project, check your billing page to see the connected project.

Perform the following steps after selecting the correct project:<br>

<figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FW84yAVowQxafVyHzJQg3%2Fimage.png?alt=media&#x26;token=d74915aa-bbca-4251-a632-bae029d47659" alt=""><figcaption></figcaption></figure>

1. In **Service Accounts**, click **Create service account.**

   <div align="left"><figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FlIi2MQCtUODNlwstYqDF%2Fimage.png?alt=media&#x26;token=1dfe4353-cd30-49d7-884c-4d7ffe698a52" alt=""><figcaption></figcaption></figure></div>

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277357/5fd55f40cbf97b526a8c0bd7/lb9t5QCLwvbPEbXuhravXQf9NHQNk29M7fRz8gbfSK1fQWsp_XAIYVkVXlNE7xAGCiUG6Hk36zgVwhYJCmJE6wHWQjTyd7E89lwAj-amKLr889UTMZFUBBEpcyAROBhp_J8wyJc5NZakGU16p26qVMM?expires=1725536700&#x26;signature=e680cf7b068a56605c858c079bc96092ca1e8b2dc41555931ccf34495fd7e874&#x26;req=1tdowlv%2Fq3sp0xr0v9tnpBjdZz6ssiaT5eCsPQ7CZQHfn%2FIwmFuAcGOEanG7%0A" alt="" width="563"><figcaption></figcaption></figure></div>
2. Configure these three roles:

   `BigQuery Data Viewer BigQuery Job User BigQuery Read Session User`

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277358/9da88f59c6b4f866f21a9e6a/iEWD41eFQ8_RfW1S3AjO1AsR7hvWRZMDYoQkxUJetVDDUBIaO42y_x8M1cGH0oWBsaq8BLpdtySuLzjOGNgZeHVEvQG9FTmIP65vqqwvop9oneOSVBhB2XLfCOZTMHKRmFLx7YTOZaPVGI95nRVlK5M?expires=1725536700&#x26;signature=d23d7e7ff0f2847d3c870400d870f79bd4962fb42f86525a286efc61b77602d3&#x26;req=1tdowlv%2FpHsp0xr0v9tnpI26Q3LF%2FLOFK7rBhsemadlk7q3bkf8njIHA6GkZ%0A" alt="" width="563"><figcaption></figcaption></figure></div>

{% hint style="info" %}
**Note**: Every role assigned to Finout’s service account by the customer can be restricted to a specific project, dataset, table, or other resource, ensuring access is limited to only the necessary tables.\
\
**To add a specific condition to a role:**\
1\. Click **Add condition**.\
The condition builder appears.\
2\. Choose a **key name**.\
3\. Apply the following format to the table for which you want to grant permissions:\
`projects/<project-id>/datasets/<dataset-id>/tables/<table-id>`\
For all format types, see [GCP documentation](https://cloud.google.com/iam/docs/conditions-resource-attributes?_gl=1*debr52*_ga*MTgwMzUzOTQyNi4xNzM4MjQ1OTk3*_ga_WH2QY8WWF5*MTczODc2NzUwMy44LjEuMTczODc2NzgyNy40OC4wLjA.#resource-name).
{% endhint %}

3. Leave section 3 blank and click **Done**.
4. Back in the menu, click the **Keys** tab.

   <figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FGRyrGG5bfRM8egILXrqr%2Fimage.png?alt=media&#x26;token=de231d48-f2b2-494c-923a-e2c78df42f83" alt=""><figcaption></figcaption></figure>

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277359/f94aa94a398678be0effe674/PRJJjn2bAiEyuU2IapdEbSk727iDBYaGBB7ofDbsiv5IosILzRHP3Em1yQpda1EEU89qOnl6ErKFNfJ_mYxg3fOwOQmZDMU1zc-nrqvUJ3BJcfmO2C5CQYXqXiUfZX9kmzb6EI1NfFTyibOS1xVymxM?expires=1725536700&#x26;signature=93b72e4f470c23f80af0a72c0c47f951cf5cd4315605460c507ff943856e7ddd&#x26;req=1tdowlv%2FpXsp0xr0v9tnpCoxN5Z%2F%2FDwuL4ruyUAxd83n%2B2QNqYH7B2CmpUgS%0A" alt="" width="563"><figcaption></figcaption></figure></div>
5. Click **Add Key** and then **Create New Key**.<br>

   <figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2Fhf7KZ7kua1ZZ2fZQBTQD%2Fimage.png?alt=media&#x26;token=764fa3ed-b8a7-4ab1-be43-9556ace3d694" alt=""><figcaption></figcaption></figure>
6. Select JSON and click **Create**.\
   The private key is created.<br>

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277360/db08c8e84a7fd386e638fa93/Bexdfecav_iVsCb5cFR0hRVAAInPbNOsNm-CLhmvKJ3nZ5PU5zy8KZ5yvtIL1O-_Gz26-YHSFT8PlYFuOi5LP9YI0q8mFMrKpwWQfxP1Oq-r1tJdYhtYoMvAO56Eigv5oUbD5aHDVAQY2hQ7Z8pOPnc?expires=1725536700&#x26;signature=6dbd3a5394b1a5259f8876b862ce644addccb03170a985dc91235d4abeed5722&#x26;req=1tdowlv8rHsp0xr0v9tnpJGdGna5Gek%2FUDRl0%2FB4U9f0C6ow3%2F6133mBjfjo%0A" alt="" width="563"><figcaption></figcaption></figure></div>

   <figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FYonUKOtl6lM5OdFJKHXZ%2Fimage.png?alt=media&#x26;token=1972d139-8d7a-4a6c-a084-ba44a6b6b990" alt=""><figcaption></figcaption></figure>

## 3. Connect GCP to Finout

1. Navigate to **Settings > Cost Centers** and click **Add cost center**.\
   The **Connect Accounts** window appears.<br>

   <figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FTEekVyhWPVGe9sFmqM29%2Fimage.png?alt=media&#x26;token=0874d963-9a6d-4796-a7f7-93985a801ce5" alt=""><figcaption></figcaption></figure>
2. Under GCP click Connect Now.<br>

   <div align="left"><figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FtSgjtA6TRnsb62jWiK9c%2Fimage.png?alt=media&#x26;token=00abd57d-b555-415a-b6cc-1eae21c129bb" alt=""><figcaption></figcaption></figure></div>
3. Enter a **Cost Center Name** and add the **JSON key** and click **Next.**\
   You are brought to the **Select billing export dataset** ste&#x70;**.**<br>

   <figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FZ32WoxYy7wXh1zZFVgU5%2Fimage.png?alt=media&#x26;token=8c51524d-e655-492f-82bc-23ed7e5eed5e" alt=""><figcaption></figcaption></figure>
4. Select an **Export Dataset**, **Export Table**, and then click **Complete Integration**.\
   The Integration is completed

## GCP Credit Types

GCP credit types enable users to categorize and display different types of credits. This addition, which includes the ability to group and filter GCP credit types and show original costs, is an effective tool for cloud expense management. It aims to deliver clarity and ease in financial analysis, empowering users with a more transparent view of their GCP billing and spending patterns.

This feature allows users to easily identify and analyze different types of GCP credits impacting their costs. It simplifies understanding how these credits play a role in overall expense management.

**Common GCP credit types**

* Sustained use discounts: For continuous resource usage.
* Committed use discounts: For consistent resource usage over time.
* Free tier usage: Covering costs under the GCP Free Tier.
* Promotional credits: Offered during promotions or special events.
* Research credits: Provided for academic or research-related purposes.

**Cost without Credits:** \
When no credits are applied to a cost, the **Credit Types** field displays **Cost Without Credits**, a Finout-calculated value representing the **original cost before any credits are applied**. \
This distinction ensures clarity in cost analysis by helping you separate discounted from non-discounted expenses. By showing the original cost before credits, Finout allows you to understand your true usage spend without the influence of promotions or discounts, giving you a more accurate view of overall spending and credit effectiveness.

{% hint style="info" %}
**Note**: Currently, the Cost without credits metric also **includes CUD (Committed Use Discounts).**
{% endhint %}

* **Key feature functionalities:**
  * Grouping by Credit Types: Offers an aggregated view of how different credits influence your total cloud expenses.
  * Filtering by Credit Types: Allows for targeted analysis of specific credit types, offering deeper financial insights.

{% hint style="info" %}
**Note**: As of **August 15th, 2025**, this field (Cost without Credits) includes the newly introduced **GCP Committed Use Discount (CUD) credits**.
{% endhint %}

## FAQs

**How can I grant Finout access to my GCP billing table through a custom project instead of the primary project?**

This setup is not available through the app’s onboarding process. If you need Finout to access your billing table through a custom project for security reasons, contact Finout support at [**support@finout.io**](mailto:support@finout.io) and provide the following details:

* **Project Name**
* **Dataset**
* **GCP Table**

{% hint style="info" %}
**Note:** Ensure the table includes the full Google billing table structure, including the partitioned time column.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.finout.io/billing-integrations/cloud-providers/connect-to-gcp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
