# 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](/user-guide/inform/megabill.md), 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](/user-guide/inform/virtual-tags.md) 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="/files/Jpsapt2A83xWXnyCujJ7" 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="/files/6yaIw92IdqLlkpF1u8qm" alt="" width="563"><figcaption></figcaption></figure></div>
3. Click on **Add** key.

   <div align="left"><figure><img src="/files/btCp4x7MYE1NXRmUUeS8" alt="" width="563"><figcaption></figcaption></figure></div>
4. Choose **Granular access**.

   <div align="left"><figure><img src="/files/mjEBPjx3BReCwAArIRT8" 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**.

   ![](/files/8WJrxm9bgTODDLPworeL)

   <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="/files/3fMDPYrkrLqp7XXORT7S" 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="/files/9DsmjN2BjvHhViVHLX7H" 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="/files/Ct0OjqEhkMcwGAV9Y1f0" 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>


---

# 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/data-and-engineering-platforms/connect-to-confluent.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.
