> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-vortex-format.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Seamlessly connect your external data sources to ClickHouse Cloud.

# Integrating with ClickHouse Cloud

export const Image = ({img, alt, size = "lg"}) => {
  const normalizedSize = ["sm", "md", "lg"].includes(size) ? size : "lg";
  return <div className={`ch-image-${normalizedSize}`}>
      <Frame>
        <img src={img} alt={alt} />
      </Frame>
    </div>;
};

<h2 id="introduction">
  Introduction
</h2>

[ClickPipes](/integrations/clickpipes/home) is a managed integration platform that makes ingesting data from a diverse set of sources as simple as clicking a few buttons. Designed for the most demanding workloads, ClickPipes's robust and scalable architecture ensures consistent performance and reliability. ClickPipes can be used for long-term streaming needs or one-time data loading job.

ClickPipes can be deployed and managed manually using the ClickPipes UI, as well as programmatically using [OpenAPI](/integrations/clickpipes/programmatic-access/openapi) and [Terraform](/integrations/clickpipes/programmatic-access/terraform).

<Image img="https://mintcdn.com/private-7c7dfe99-vortex-format/Kj4wT80mHNH7Aczn/images/integrations/data-ingestion/clickpipes/clickpipes_stack.webp?fit=max&auto=format&n=Kj4wT80mHNH7Aczn&q=85&s=0c0fdf0e4fc18cf6d25cf05b9dc19bef" alt="ClickPipes stack" size="lg" border width="1200" height="400" data-path="images/integrations/data-ingestion/clickpipes/clickpipes_stack.webp" />

<h2 id="supported-data-sources">
  Supported data sources
</h2>

| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Type                                         | Status                                        | Description                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/l_zwrOnxh5fxZ_Zp/images/integrations/logos/kafka.svg?fit=max&auto=format&n=l_zwrOnxh5fxZ_Zp&q=85&s=7771373c35970a61f5c2f60c84cd3e09" alt="Apache Kafka logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/kafka.svg" /> [Apache Kafka](/integrations/clickpipes/kafka/index)                                                                                                                                  | <Badge color="blue">Streaming</Badge>        | <Badge color="green">Stable</Badge>           | Configure ClickPipes and start ingesting streaming data from Apache Kafka into ClickHouse Cloud.                                                                                                      |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/confluent.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=6cdf557b008c0a4921c6a004e2a7d79d" alt="Confluent Cloud logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/confluent.svg" /> Confluent Cloud                                                                                                                                      | <Badge color="blue">Streaming</Badge>        | <Badge color="green">Stable</Badge>           | Unlock the combined power of Confluent and ClickHouse Cloud through our direct integration.                                                                                                           |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/l_zwrOnxh5fxZ_Zp/images/integrations/logos/logo_redpanda.webp?fit=max&auto=format&n=l_zwrOnxh5fxZ_Zp&q=85&s=8b3c180df2e0c81cfa837318ac86dfc0" alt="Redpanda logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/logo_redpanda.webp" /> Redpanda                                                                                                          | <Badge color="blue">Streaming</Badge>        | <Badge color="green">Stable</Badge>           | Configure ClickPipes and start ingesting streaming data from Redpanda into ClickHouse Cloud.                                                                                                          |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/l_zwrOnxh5fxZ_Zp/images/integrations/logos/msk.svg?fit=max&auto=format&n=l_zwrOnxh5fxZ_Zp&q=85&s=db1a222bca12a22f48b057f94f588944" alt="AWS MSK logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/msk.svg" /> AWS MSK                                                                                                                                                                                                      | <Badge color="blue">Streaming</Badge>        | <Badge color="green">Stable</Badge>           | Configure ClickPipes and start ingesting streaming data from AWS MSK into ClickHouse Cloud.                                                                                                           |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/azure_event_hubs.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=c2843aa121361c12fa1134e7166b9983" alt="Azure Event Hubs logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/azure_event_hubs.svg" /> Azure Event Hubs                                                                            | <Badge color="blue">Streaming</Badge>        | <Badge color="green">Stable</Badge>           | Configure ClickPipes and start ingesting streaming data from Azure Event Hubs into ClickHouse Cloud. See the [Azure Event Hubs FAQ](/integrations/clickpipes/kafka/faq#azure-eventhubs) for guidance. |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/uBraLefhLowMlCJn/images/integrations/logos/warpstream.svg?fit=max&auto=format&n=uBraLefhLowMlCJn&q=85&s=36ad5506214592fe8480f8ef96baad08" alt="WarpStream logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/warpstream.svg" /> WarpStream                                                                                                                                        | <Badge color="blue">Streaming</Badge>        | <Badge color="green">Stable</Badge>           | Configure ClickPipes and start ingesting streaming data from WarpStream into ClickHouse Cloud.                                                                                                        |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/amazon_kinesis_logo.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=5058c92b7ffa9b7e22f999256f8cd529" alt="Amazon Kinesis logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/amazon_kinesis_logo.svg" /> [Amazon Kinesis](/integrations/clickpipes/kinesis/overview)           | <Badge color="blue">Streaming</Badge>        | <Badge color="green">Stable</Badge>           | Configure ClickPipes and start ingesting streaming data from Amazon Kinesis into ClickHouse Cloud.                                                                                                    |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/google_pubsub.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=91cf965d2442995d050ddc9d3e4df5d8" alt="Google Cloud Pub/Sub logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/google_pubsub.svg" /> [GCP Pub/Sub](/integrations/clickpipes/pubsub/overview)                                                     | <Badge color="blue">Streaming</Badge>        | <Badge color="purple">Private Preview</Badge> | Configure ClickPipes and start ingesting streaming data from Google Cloud Pub/Sub into ClickHouse Cloud.                                                                                              |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/amazon_s3_logo.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=2412b7c371a24b6f62c44664c13b492b" alt="Amazon S3 logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/amazon_s3_logo.svg" /> [Amazon S3](/integrations/clickpipes/object-storage/amazon-s3/overview)                                          | <Badge color="orange">Object Storage</Badge> | <Badge color="green">Stable</Badge>           | Configure ClickPipes to ingest large volumes of data from object storage.                                                                                                                             |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/gcs.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=414fbc807c7c25af0a899441eafb378c" alt="Google Cloud Storage logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/gcs.svg" /> [Google Cloud Storage](/integrations/clickpipes/object-storage/google-cloud-storage/overview)                                                                                                 | <Badge color="orange">Object Storage</Badge> | <Badge color="green">Stable</Badge>           | Configure ClickPipes to ingest large volumes of data from object storage.                                                                                                                             |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/digitalocean.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=01f10f098ec8f31e0c9d253219b8f5a1" alt="Digital Ocean logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/digitalocean.svg" /> DigitalOcean Spaces                                                                                                            | <Badge color="orange">Object Storage</Badge> | <Badge color="green">Stable</Badge>           | Configure ClickPipes to ingest large volumes of data from object storage.                                                                                                                             |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/021U3WW1STz_H5Tt/images/integrations/logos/azureblobstorage.svg?fit=max&auto=format&n=021U3WW1STz_H5Tt&q=85&s=aa5acef01b6cc01f2e1c665a8c443b5f" alt="Azure Blob Storage logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/azureblobstorage.svg" /> [Azure Blob Storage](/integrations/clickpipes/object-storage/azure-blob-storage/overview) | <Badge color="orange">Object Storage</Badge> | <Badge color="green">Stable</Badge>           | Configure ClickPipes to ingest large volumes of data from object storage.                                                                                                                             |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/l_zwrOnxh5fxZ_Zp/images/integrations/logos/postgresql.svg?fit=max&auto=format&n=l_zwrOnxh5fxZ_Zp&q=85&s=ae79cf79d28e61746de200616c7ee787" alt="Postgres logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/postgresql.svg" /> [Postgres](/integrations/clickpipes/postgres/index)                                                                                               | <Badge color="purple">DBMS</Badge>           | <Badge color="green">Stable</Badge>           | Configure ClickPipes and start ingesting data from Postgres into ClickHouse Cloud.                                                                                                                    |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/l_zwrOnxh5fxZ_Zp/images/integrations/logos/mysql.svg?fit=max&auto=format&n=l_zwrOnxh5fxZ_Zp&q=85&s=2fae42639d63fdcb9ecce2b1b6dd8589" alt="MySQL logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/mysql.svg" /> [MySQL](/integrations/clickpipes/mysql/index)                                                                                                                                                | <Badge color="purple">DBMS</Badge>           | <Badge color="yellow">Public Beta</Badge>     | Configure ClickPipes and start ingesting data from MySQL into ClickHouse Cloud.                                                                                                                       |
| <img src="https://mintcdn.com/private-7c7dfe99-vortex-format/l_zwrOnxh5fxZ_Zp/images/integrations/logos/mongodb.svg?fit=max&auto=format&n=l_zwrOnxh5fxZ_Zp&q=85&s=31d9055a4e311930ff6b7805d1a9af55" alt="MongoDB logo" className="integration-table-logo" width="24" height="24" data-path="images/integrations/logos/mongodb.svg" /> [MongoDB](/integrations/clickpipes/mongodb/index)                                                                                                                            | <Badge color="purple">DBMS</Badge>           | <Badge color="purple">Private Preview</Badge> | Configure ClickPipes and start ingesting data from MongoDB into ClickHouse Cloud.                                                                                                                     |

More connectors will get added to ClickPipes, you can find out more by [contacting us](https://clickhouse.com/company/contact?loc=clickpipes).

<h2 id="aws-iam-database-authentication">
  AWS IAM database authentication
</h2>

ClickPipes supports AWS IAM database authentication for Amazon RDS and Aurora. The configuration differs by database engine and AWS service, so choose the source setup guide that matches your database:

| Database engine | AWS service   | Setup guide                                                                                                |
| --------------- | ------------- | ---------------------------------------------------------------------------------------------------------- |
| PostgreSQL      | Amazon RDS    | [RDS for PostgreSQL](/integrations/clickpipes/postgres/source/rds#iam-authentication)                      |
| PostgreSQL      | Amazon Aurora | [Aurora PostgreSQL-Compatible Edition](/integrations/clickpipes/postgres/source/aurora#iam-authentication) |
| MySQL           | Amazon RDS    | [RDS for MySQL](/integrations/clickpipes/mysql/source/rds#iam-authentication)                              |
| MySQL           | Amazon Aurora | [Aurora MySQL-Compatible Edition](/integrations/clickpipes/mysql/source/aurora#iam-authentication)         |
| MariaDB         | Amazon RDS    | [RDS for MariaDB](/integrations/clickpipes/mysql/source/rds-maria#iam-authentication)                      |

<h2 id="list-of-static-ips">
  List of Static IPs
</h2>

The list of ClickPipes static NAT IPs has moved to the [ClickPipes networking documentation](/integrations/clickpipes/networking/static-ips).

<h2 id="adjusting-clickhouse-settings">
  Adjusting ClickHouse settings
</h2>

ClickHouse Cloud provides sensible defaults for most of the use cases. However, if you need to adjust some ClickHouse settings for the ClickPipes destination tables, a dedicated role for ClickPipes is the most flexible solution.
Steps:

1. create a custom role `CREATE ROLE my_clickpipes_role SETTINGS ...`. See [CREATE ROLE](/reference/statements/create/role) syntax for details.
2. add the custom role to ClickPipes user on step `Details and Settings` during the ClickPipes creation.

<Image img="https://mintcdn.com/private-7c7dfe99-vortex-format/Kj4wT80mHNH7Aczn/images/integrations/data-ingestion/clickpipes/cp_custom_role.webp?fit=max&auto=format&n=Kj4wT80mHNH7Aczn&q=85&s=f7a601c06d65787be5e5bf938db56edc" alt="Assign a custom role" size="lg" border width="1744" height="470" data-path="images/integrations/data-ingestion/clickpipes/cp_custom_role.webp" />

<h2 id="clickpipes-advanced-settings">
  Adjusting ClickPipes advanced settings
</h2>

ClickPipes provides sensible defaults that cover the requirements of most use cases. If your use case requires additional fine-tuning, you can adjust the following settings:

<h3 id="clickpipes-advanced-settings-object-storage">
  Object storage ClickPipes
</h3>

| Setting                              | Default value | Description                                                                                                                                                 |
| ------------------------------------ | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Max insert bytes`                   | 10 GB         | Number of bytes to process in a single insert batch.                                                                                                        |
| `Max file count`                     | 100           | Maximum number of files to process in a single insert batch.                                                                                                |
| `Max threads`                        | auto(3)       | [Maximum number of concurrent threads](/reference/settings/session-settings/max-threads#max_threads) for file processing.                                   |
| `Max insert threads`                 | 1             | [Maximum number of concurrent insert threads](/reference/settings/session-settings/max-insert#max_insert_threads) for file processing.                      |
| `Min insert block size bytes`        | 1 GB          | [Minimum size of bytes in the block](/reference/settings/session-settings/min-insert#min_insert_block_size_bytes) which can be inserted into a table.       |
| `Max download threads`               | 4             | [Maximum number of concurrent download threads](/reference/settings/session-settings/max-download#max_download_threads).                                    |
| `Object storage polling interval`    | 30 s          | Configures the maximum wait period before inserting data into the ClickHouse cluster.                                                                       |
| `Parallel distributed insert select` | 2             | [Parallel distributed insert select setting](/reference/settings/session-settings/parallel#parallel_distributed_insert_select).                             |
| `Parallel view processing`           | false         | Whether to enable pushing to attached views [concurrently instead of sequentially](/reference/settings/session-settings/parallel#parallel_view_processing). |
| `Use cluster function`               | true          | Whether to process files in parallel across multiple nodes.                                                                                                 |

<Image img="https://mintcdn.com/private-7c7dfe99-vortex-format/Kj4wT80mHNH7Aczn/images/integrations/data-ingestion/clickpipes/cp_advanced_settings.webp?fit=max&auto=format&n=Kj4wT80mHNH7Aczn&q=85&s=6317c0c4160edf0d3cdd9f3f18c431dc" alt="Advanced settings for ClickPipes" size="lg" border width="1724" height="620" data-path="images/integrations/data-ingestion/clickpipes/cp_advanced_settings.webp" />

<h3 id="clickpipes-advanced-settings-streaming">
  Streaming ClickPipes
</h3>

| Setting                          | Default value | Description                                                                           |
| -------------------------------- | ------------- | ------------------------------------------------------------------------------------- |
| `Streaming max insert wait time` | 5 s           | Configures the maximum wait period before inserting data into the ClickHouse cluster. |

<h2 id="error-reporting">
  Error reporting
</h2>

ClickPipes will store errors in two separate tables depending on the type of error encountered during the ingestion process.

<Note>
  This does not currently apply to CDC pipes (Postgres, MySQL, and MongoDB), for which operational and error logging are available directly in the ClickHouse Cloud console.
</Note>

<h3 id="record-errors">
  Record errors
</h3>

ClickPipes will create a table next to your destination table with the postfix `<destination_table_name>_clickpipes_error`. This table will contain any errors from malformed data or mismatched schema and will include the entirety of the invalid message. This table has a [TTL](/reference/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-ttl) of 7 days.

<h3 id="system-errors">
  System errors
</h3>

Errors related to the operation of the ClickPipe will be stored in the `system.clickpipes_log` table. This will store all other errors related to the operation of your ClickPipe (network, connectivity, etc.). This table has a [TTL](/reference/engines/table-engines/mergetree-family/mergetree#table_engine-mergetree-ttl) of 7 days.

If ClickPipes can't connect to a data source after 15 min or to a destination after 1 hr, the ClickPipes instance stops and stores an appropriate message in the system error table (provided the ClickHouse instance is available).

<h2 id="monitoring">
  Monitoring
</h2>

In addition to in-console monitoring, ClickPipes exposes metrics to a [Prometheus-compatible endpoint](/products/cloud/features/monitoring/prometheus) for scraping. These metrics are published with other ClickHouse Cloud service metrics, and allow you to integrate ClickPipes monitoring with your existing observability stack (e.g., [Grafana](/products/cloud/features/monitoring/prometheus#integrating-with-grafana), [Datadog](/products/cloud/features/monitoring/prometheus#integrating-with-datadog)). See [Monitoring ClickPipes](/integrations/clickpipes/monitoring) for the full list of available metrics.

<h2 id="faq">
  FAQ
</h2>

* **What is ClickPipes?**

  ClickPipes is a ClickHouse Cloud feature that makes it easy for you to connect your ClickHouse services to external data sources, specifically Kafka. With ClickPipes for Kafka, you can easily continuously load data into ClickHouse, making it available for real-time analytics.

* **Does ClickPipes support data transformation?**

  Yes, ClickPipes supports basic data transformation by exposing the DDL creation. You can then apply more advanced transformations to the data as it is loaded into its destination table in a ClickHouse Cloud service leveraging ClickHouse's [materialized views feature](/concepts/features/materialized-views/cascading-materialized-views).

* **Does using ClickPipes incur an additional cost?**

  ClickPipes is billed on two dimensions: Ingested Data and Compute. The full details of the pricing are available on [this page](/products/cloud/reference/billing/clickpipes/index). Running ClickPipes might also generate an indirect compute and storage cost on the destination ClickHouse Cloud service similar to any ingest workload.

* **Is there a way to handle errors or failures when using ClickPipes for Kafka?**

  Yes, ClickPipes for Kafka will automatically retry in the event of failures when consuming data from Kafka for any operational issue including network issues, connectivity issues, etc. In the event of malformed data or invalid schema, ClickPipes will store the record in the record\_error table and continue processing.
