# Connect to Confluent

Confluent is a full-scale, advanced data [streaming platform](https://docs.confluent.io/platform/current/_glossary.html#term-event-streaming-platform) that facilitates seamless access storage, and management of continuous real-time data streams.

​​The Confluent cost center is available in the [MegaBill](https://docs.finout.io/user-guide/inform/megabill), providing breakdowns by services, clusters, usage type (e.g., network write, storage), and network access type (e.g., Peered VCP, Internet).

This integration ensures a unified view of all associated costs, combining the environment's expenditures with its related cloud expenses. [Virtual Tags](https://docs.finout.io/user-guide/inform/virtual-tags) can be utilized to further consolidate costs and obtain a comprehensive view.

{% hint style="info" %}
**Note**: To retrieve cost data from Confluent, use the following endpoint:\
​`http://api.confluent.cloud/billing/v1/costs`
{% endhint %}

## **1. Connect ​​Confluent to Finout** <a href="#h_05d366f3c0" id="h_05d366f3c0"></a>

1. Navigate to confluent cloud home.<br>

   <div align="left"><figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2Fpqkp1F3IVst6EESPoiVW%2Fimage.png?alt=media&#x26;token=1391c880-f04d-4f82-bdb9-a1536a2bf1e9" alt="" width="375"><figcaption></figcaption></figure></div>
2. Select the menu on the right and choose **Cloud API keys**.<br>

   <div align="left"><figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2F49ytTCjAYeB7LkyOFwUY%2Fimage.png?alt=media&#x26;token=5a4d1417-a653-4675-84f8-660db1dcfae8" alt="" width="563"><figcaption></figcaption></figure></div>
3. Click on **Add** key.

   <div align="left"><figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FIq7Eg5lENc8hFYiNGuYD%2Fimage.png?alt=media&#x26;token=c7c46669-44c0-4561-b4b6-79b1bb8995f3" alt="" width="563"><figcaption></figcaption></figure></div>
4. Choose **Granular access**.

   <div align="left"><figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FhSB5rXTlgDNEe1BxnxOe%2Fimage.png?alt=media&#x26;token=dea53748-858e-4d50-af3f-f6686578f8c5" alt="" width="563"><figcaption></figcaption></figure></div>
5. Select **Create a new one**, input a new service account name and description, and proceed (a new service account will be created).
6. Once the key is generated, an option to describe it appears. Click **Download** and continue.

## **2. Grant permissions to the cloud API key**

1. On the right menu, select **Accounts and Access**.

   ![](https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2FPBIKzCZVVxUPXvCiC8Tx%2Funknown.png?alt=media\&token=93a5cffd-ca58-4ee7-992d-da8c4390fb27)

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277265/ac31771dcba0fc411868bdfa/OD5lvyWgjNLw4c0m4NSFaoq9DeK1mPuv9VNrty2T2muZ3ga_1in05Lm3dMLgnHqb1riq_fo11z4tC-Ndl2JXQRc7arixLjRJadyzElvGiXdpYaPuoZiwFftcYKJYEwDt6YbDA1oyt1koMdRgzgH47OE?expires=1725883200&#x26;signature=124cd56e96da962e0579d56322489ea596644aace7c6de29b0c790727d894cc9&#x26;req=1tdowlr8qXsp2RPy89osp64xZUyPnpvDUrLYvmfscL5dNgXWMBUmy4AfN3Is%0A%2FQ5LtH5FBsc%2FWgcEZx7sheo%3D%0A" alt="" width="375"><figcaption></figcaption></figure></div>
2. Navigate to **Service Accounts** under **Accounts**.
3. Search for the newly created service account and select it.

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277266/75c380fb64a934444b263537/bcljiv7D0NVrs4ZTn7eFQU8DK2bgske-QiczqogaFV7zVWWgdfPiB2LYpbjETJEEEIHkpzbUHAH6RhSX5JZkaFUw-h4GB9oHYXSvA10astPnUsL6IPAx7JsjnB6aON-x1Hh7Jy-UUYkPV5LQDF3rAhk?expires=1725883200&#x26;signature=9a864b27a773b03aa2cc19e0f911b1e94a20639d53054ddd9f4269b4693c75cf&#x26;req=1tdowlr8qnsp2RPy89ospwJXD4nrYvtOqN4EVgosu%2BMpxnnCmLG7%2F9d6ka3G%0AmonvivtZYW1Fky%2FIBc1Tgj8%3D%0A" alt="" width="375"><figcaption></figcaption></figure></div>

   <figure><img src="https://3858159242-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWqjB2puKXPDR7L86FX2e%2Fuploads%2Fv22CcV4ke7SggFr9sZgN%2Funknown.png?alt=media&#x26;token=d1108f79-48a9-48cd-9f44-e56b37b607be" alt=""><figcaption></figcaption></figure>
4. Select **Add role assignment** under organization.

   <div align="left"><figure><img src="https://finout.intercom-attachments.eu/i/o/6277267/0d98bec2d42b29e8d3cbc891/65xbfKImi_PErSizSoxS4bz32YoEl0ZjdpNMl3FqvJ8JXTh8zFVgzdr8HRE342oRhg4HInzR49GsCJ4igUkqWGvOyJuH_pc1Q5npaIhCcaRoOU1k8UkMVWMIt6Kh184BS6CBWXx_TG10WSR6k8ya-Cg?expires=1725883200&#x26;signature=5701783edd1a2aa44d3521da8a58aaf12c7a6d9e9d3a654bcffe7810f2b53667&#x26;req=1tdowlr8q3sp2RPy89osp2jP5wj31Vj60Hk0bqAi6IkqUg97VgTZtyNtXf52%0An9HLJr1pBmOYJY4xyv%2FLAXk%3D%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%2FjEWYOLrNnuCMP16Y0Zzg%2Funknown.png?alt=media&#x26;token=dd1b284a-2d1b-401e-9d94-e3e8518a2533" alt=""><figcaption></figcaption></figure>
5. Choose **BillingAdmin** and confirm this choice.

   <div align="left"><figure><img src="https://downloads.intercomcdn.eu/i/o/15121663/374c3a6891043fd58098c6b1/Screenshot+2024-06-19+at+15_25_11.png?expires=1725883200&#x26;signature=0946ce30c126bc0a7f9eb9e81ce51b3836f616f43ac2a7bdfff5bd51a1f55b9f&#x26;req=0dBux1n8qjRk2hj99dpg6k0rEyQ8M3uJDvmcO31uWNChrkendTndTvbDfjuS%0AulSdS%2F5mYb2ysJgY3dEFzupn%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%2FxXJUFDg7O7DeeOJm9b9Q%2Funknown.png?alt=media&#x26;token=2f2c768d-09eb-43be-a340-1c2aa89a49d8" alt=""><figcaption></figcaption></figure></div>
6. Provide Finout with the generated API key and secret.

{% hint style="warning" %}
**Important**: You must hold the BillingAdmin role for successful integration.
{% endhint %}

<br>
