How the OpenMetadata ClickHouse integration works
A data platform team running ClickHouse for event, log or telemetry tables usually needs three things from a catalog: a named owner for each table, lineage showing which queries and pipelines feed it, and quality checks that run against it. OpenMetadata reads ClickHouse through its production database connector, using metadata, query usage and lineage drawn from ClickHouse system tables. The connector is documented for the v2.0.x docs line, so confirm that your target OpenMetadata release matches that documentation before you plan the build.
The connector covers usage, lineage, column-level lineage, the profiler, data quality and dbt. Ingestion is pull-based: OpenMetadata connects to ClickHouse on a schedule you set and reads what it needs. Nothing streams from ClickHouse into the catalog as queries run, so usage and lineage reflect what the system tables hold at each run. Plan the schedule, and the retention of those system tables on your own cluster, around how quickly owners need to see changes. Confirm how far back your ClickHouse version keeps query log history, because that sets how much usage history the first run can capture.
ClickHouse server is open source under the Apache License 2.0, so the database itself carries no license fee. The connector is a separate component that your team deploys and runs next to OpenMetadata in infrastructure you control. Before you start, check the OpenMetadata ClickHouse connector documentation for the exact permissions, configuration keys and supported features, since those are the details that decide what your first ingestion run will actually return.
What you need before connecting ClickHouse to OpenMetadata
Five things must be in place before the ClickHouse connector can run. Each one is a separate owner and a separate failure point, so confirm them in order: the database version, the OpenMetadata platform, the read-only user, the network path and the TLS setup.
A supported ClickHouse version
Check that your cluster runs a release line the ClickHouse security policy still lists as supported: 26.9, 26.8, 26.7 or 26.3. Other versions receive no security updates, so a catalog project can expose an unpatched server to new readers. Record the exact build with SELECT version() before you size the work, and confirm with your ClickHouse team whether an upgrade is needed first. Upgrades change system table columns between minor releases, so test the connector against your target version in a pre-production environment.
A running OpenMetadata deployment
The connector runs against an OpenMetadata server that already meets its published minimums: 2 vCPUs, 4 GB RAM and 20 GB storage for the server, with the database and search services each needing at least 2 vCPUs, 2 GB RAM and 30 GB storage. Profiling and ingestion add load on top of that, so confirm capacity with your platform team before the first full run. Decide early whether ingestion runs from the server or a separate runner, because that decision drives the network rules in a later card.
Bare metal prerequisitesA dedicated read-only ClickHouse user
Create a separate ClickHouse user for OpenMetadata instead of reusing an application or administrator account. The connector needs SELECT on system.* for query usage and lineage, plus SELECT on each target schema for metadata and profiling. Keep write and DDL rights out of the grant set, and restrict the user to the databases in scope. Document who owns the account and its password rotation, because the connector stores these credentials in OpenMetadata.
Network reachability from the ingestion runner
The host that runs ingestion must reach the ClickHouse HTTP or native port on every node the connector targets. Confirm the path with your network team, including firewall rules, DNS names and any load balancer in front of the cluster. If ClickHouse runs in a private VPC or on-premises network, the runner must sit inside that network or on a routed path. Test the connection from the runner itself, not from your workstation, because the results often differ.
TLS and certificates where required
If your cluster requires encrypted connections, collect the CA bundle and any client certificate the connector must present, and confirm which ports serve TLS. ClickHouse can authenticate clients with SSL X.509 certificates, and some deployments also use LDAP, Kerberos or JWT through external authenticators. Confirm which method your cluster enforces, because the connector configuration must match it. Store certificate files and keys in your secrets management tooling, not in plain configuration files.
External authenticators docsConfiguring the ClickHouse connector step by step
This sequence takes a ClickHouse cluster from a read-only account to a scheduled OpenMetadata ingestion that catalogs schemas, usage and lineage, with profiling and data quality added only after metadata has run cleanly. Each step ends with a check so problems surface early, before they reach large tables or downstream owners.
Create the read-only ClickHouse user and grants
The ClickHouse DBA creates a dedicated user for OpenMetadata and grants SELECT on the system tables and on the target schemas, and nothing more. Usage and lineage come from system tables, so the user needs SELECT on system.* for those views to be readable, while the target schemas limit what gets cataloged. Confirm the grants in the official connector documentation for your ClickHouse version and review them with your security team before the user is created. The step is done when a login as that user can query system.tables and the chosen schemas, and fails on any write statement.
Confirm connectivity from the ingestion host
Run a connection test from the host or pod that will run ingestion, not from your laptop, because network paths and firewall rules differ. Check that the ClickHouse HTTP or native port is reachable, that TLS settings match the server certificate, and that the user can authenticate. If your organization uses an external authenticator such as LDAP, Kerberos or JWT, confirm that the ingestion host can reach that authenticator too. The step closes when a direct client query from the ingestion host returns the expected version and schema list.
Create the database service in OpenMetadata
An OpenMetadata administrator creates a ClickHouse database service in the UI or through the API, entering the host, port, credentials and TLS settings verified in the previous step. Store the password in the secrets mechanism your deployment supports rather than in plain configuration. Run the built-in test connection before saving. The step is done when the test connection reports every required check as passing, and any failed check is resolved before you continue.
Set metadata ingestion filters for included schemas
Configure schema and table filters so that only the databases you intend to catalog are imported, and exclude scratch, temporary and system databases. Start with one or two schemas owned by a known team, because a broad first run makes it harder to judge whether results are correct. Check the filter syntax in the connector documentation for your OpenMetadata version. The step is done when a metadata-only run completes and the table count in OpenMetadata matches a count you take directly from system.tables for the same schemas.
Enable usage and lineage ingestion
Turn on query usage and lineage ingestion once metadata runs cleanly. The connector reads query history and lineage information from ClickHouse system tables, so verify that the query log is enabled and retained long enough for the period you want to analyze. Run the usage and lineage workflow for a short window first. The step closes when a known view or materialized view shows its upstream and downstream tables in OpenMetadata, and a sample query recorded in ClickHouse appears in the usage view.
Add profiler and data quality settings after metadata runs
Add profiler configuration only after the metadata and lineage runs are clean. Profiling reads table data, so begin with a small set of tables, sampling settings and a schedule outside peak query hours on the production cluster, or use a replica where your architecture allows. Add data quality tests to the same small set, and confirm that each result matches a manual query you run against the same table. The step is done when the profiler output for a sampled table agrees with a row count and a column check you run yourself.
Schedule the workflows and verify the results
Schedule metadata, usage and lineage workflows at intervals that match how often your schemas change, and keep profiling on a separate, less frequent schedule. Review the first several runs in the ingestion logs for permission errors, timeouts and skipped tables. Then compare a sample of OpenMetadata entries with ClickHouse system tables again to confirm they stay in sync. The step closes when two consecutive scheduled runs succeed with no new permission errors and the spot checks still match.
How metadata, usage and lineage flow from ClickHouse into the catalog
The flow starts at the OpenMetadata ingestion runner, which connects to ClickHouse with a read-only user holding SELECT on the system tables and the target schemas. Metadata, query usage and lineage come back to the runner, which sends them to the OpenMetadata server. The server stores records in its database and indexes them in the search service. Check that the runner and the ClickHouse user sit inside your trust boundary, and that only the server is reachable by catalog users.
Ingestion runs inside the client network, and only the OpenMetadata server serves catalog users.
Mapping ClickHouse objects and query history to OpenMetadata entities
This table shows how each ClickHouse object and log source lands in OpenMetadata, so you can see what the catalog will show and what it will miss. Read each row as a question: what does the connector read, what entity does it create, and where does the mapping stop. The main takeaway is that usage and lineage depend on query history that ClickHouse actually retains, so retention settings need checking before you trust the results.
| ClickHouse source | OpenMetadata entity | What to confirm or watch |
|---|---|---|
| Server or cluster connection | Database service | One service per ClickHouse deployment you connect. Confirm the host, port and user the connector will use in your environment. |
| Databases in the included schemas | Database and database schema | Only schemas you include in the connector filter are cataloged. Confirm the filter patterns before the first full run. |
| Tables | Table entity | Tables in included schemas are imported with their names and table types. Check that replicated and distributed tables appear as you expect in your layout. |
| Views and materialized views | Table entity with view definition | View definitions are imported where the connector can read them. Confirm the definition appears after the first run and that the SELECT grant covers the underlying schema. |
| Columns and data types | Column metadata on the table | Names, types and descriptions are imported. Column comments set in ClickHouse are a useful source of descriptions for owners to review. |
| Query log entries (system.query_log) | Usage and query lineage | Usage counts and lineage come only from queries still present in the log. Confirm log retention and flush settings in your environment, because older queries are not recovered from the log. |
| Lineage between tables from INSERT ... SELECT and view definitions | Table and column lineage | Lineage stops at objects outside the included schemas and at queries not retained in system logs. Expect gaps for ad hoc queries run by tools that do not log them. |
| Profiler output | Table and column profiles | Profiles are computed by sampling or querying the target tables, so run cost and load fall on the cluster. Confirm the sampling settings and schedule with the owners of large tables before enabling them. |
Profiling large ClickHouse tables without loading the cluster
Full-table profiling reads every row of each profiled table, which gives the most complete column statistics, null counts and distinct values. On ClickHouse the cost falls on the nodes that serve your queries: each run uses CPU, memory and disk I/O on the replica it queries, and the load grows with table size and the number of profiled columns. It is the simplest option to reason about and the least forgiving on large event or log tables.
- Where it fits: tables small enough that a complete scan finishes comfortably inside an off-peak window on your hardware.
- What it costs: scan time and cluster load, repeated on every profiler run. This is recurring operating cost, not a one-time charge.
- Column scope: profiling every column multiplies the work, so limit full scans to columns that feed quality tests or classification.
- Replica impact: confirm which node the profiler queries and whether that node also serves dashboards or ingestion.
Before enabling full scans, measure how long one complete run takes on a pre-production copy of your largest tables.
Sampled profiling reads a subset of rows and extrapolates column statistics from that subset. OpenMetadata 2.0 made Dynamic Sampling the profiler default, so teams upgrading from earlier releases should check which sampling behavior their profiler now applies. Sampling reduces scan cost, but the results are estimates, and the accuracy depends on how evenly the data is spread.
- Sample selection: confirm how the sample is chosen for each table and whether the same rows are reused across runs.
- Skewed data: distinct counts and null ratios can drift on columns where a few values dominate or where recent rows differ from older ones.
- Quality tests: tests that enforce exact thresholds, such as row counts or uniqueness, should run on full data or on queries you control, not on sampled statistics.
- Documentation: confirm the sampling settings and their names in the connector documentation for your OpenMetadata version before writing them into configuration.
Ask for a comparison of sampled and full results on one representative table, so the team knows how far the estimates can be trusted.
Restricting profiling to selected tables or partitions limits the scan to data that matters for governance. This works well for large time-partitioned tables, where recent partitions change most and older partitions are stable. The trade-off is that a profile built from part of a table describes only that part, so the catalog must say what was profiled.
- Table allowlists: include only the tables with owners and a documented purpose, and exclude staging and temporary schemas.
- Partition scope: profile the most recent partitions on a schedule, and state the partition range on the table's profile so readers do not mistake it for a full-table view.
- Access scope: the connector user needs SELECT on the target schemas, so keep the grant to those schemas and no wider.
- Version support: confirm in the connector documentation whether partition-level filtering is available in your OpenMetadata version and how it is configured.
Before you rely on partition scope, check with the data owners that the recent partitions represent the data they want to govern.
Profiler runs add load on the same ClickHouse cluster that serves analysts and ingestion jobs, so timing and testing decide whether profiling is safe. Schedule profiler runs outside peak ingestion and query windows, stagger them from metadata ingestion and dbt runs, and verify the timing against your own workload instead of assuming a quiet period exists. ClickHouse's production guidance recommends a pre-production environment with representative data and queries, and the same principle applies here.
- Window selection: identify peak ingestion and dashboard hours from the cluster's own query logs before setting a schedule.
- Pre-production copy: load representative data volumes and run the same profiler scope there first, watching query latency and memory during the run.
- Staged rollout: enable one schema or a few tables in production, then widen scope once runs complete without impact.
- Upgrade checks: read the ClickHouse changelog and the OpenMetadata release notes before upgrading either system, since profiler behavior can change between versions.
Ask the team to confirm the agreed run window, the impact threshold that pauses profiling, and who owns the schedule.
Securing the ClickHouse connection and the grants behind it
The ClickHouse connector reads system tables and target schemas, so its account becomes a standing read path into your analytical data. The controls below work together: a narrow user, protected credentials, encrypted transport, restricted network paths and an authentication method your identity team already runs. Each one should be reviewed by the team that owns the ClickHouse cluster before the connector goes live.
Dedicated least-privilege ingestion user
Create a separate ClickHouse user for OpenMetadata rather than reusing an administrator or an application account. Grant SELECT on system.* and on the target schemas only, and grant no write, DDL or administrative privileges. Confirm the exact system tables the connector version reads with the connector documentation before you finalize the grant list. Record who owns the account so that changes to its grants go through review.
Access model review by the owning team
The team that administers ClickHouse should approve the user's access model before deployment, because it decides which databases and tables appear in the catalog and which metadata about queries is exposed. Ask them to confirm which schemas are in scope, whether any tables hold regulated or personal data, and who can read the resulting metadata in OpenMetadata. Repeat this review whenever the connector scope or the schema list changes.
ClickHouse access control docsCredentials in the OpenMetadata secrets mechanism
Store the ClickHouse password in the secrets mechanism your OpenMetadata deployment supports rather than in ingestion configuration files or version control. Confirm with your deployment team how secrets are injected in your chosen install method, who can read them, and how rotation is handled without editing the connector definition by hand. Remember that anyone with admin access to OpenMetadata may be able to view connection details, so restrict that role too.
TLS between the runner and the cluster
Enable TLS on the ClickHouse HTTP and native interfaces and configure the connector to verify the server certificate, so that credentials and metadata do not cross the network in clear text. Ask the ClickHouse team which CA chains to trust and how certificates are renewed. Test that the connection fails when the certificate is wrong, because a connector that silently skips verification is a common oversight.
Network allowlisting for the ingestion runner
Restrict inbound access to the ClickHouse ports so that only the host or subnet running ingestion can connect from the metadata side, and keep the OpenMetadata server and ingestion runner on the same controlled network segment. Confirm the source addresses with your network team, since runners in Kubernetes or CI environments often use changing addresses. Review the allowlist whenever the runner moves.
External authenticators if already in use
If your organization already runs LDAP, Kerberos, X.509 certificates or JWT for ClickHouse, consider using the matching external authenticator for the ingestion user instead of a local password. This keeps account lifecycle in the directory your identity team governs. Confirm that the chosen method works with the connector version you deploy and that a service identity can be issued and disabled without touching OpenMetadata.
External authenticators docsCommon ClickHouse connector failures and how to fix them
This table lists the failures teams most often hit when the OpenMetadata ClickHouse connector runs, with the likely cause, the check to run and the fix for each. Work down the rows in order: connectivity and TLS problems block everything, while empty usage, filter and profiler issues show up after the first ingestion completes.
| Failure | Likely cause | Check and fix |
|---|---|---|
| Connection refused | The ingestion host cannot reach the ClickHouse HTTP or native port, or the service is bound to an interface the connector does not use | Confirm the host, port and network path from the ingestion runner to ClickHouse, then check the server listen settings and any firewall or security group rules between them |
| TLS or certificate errors | The connector enables TLS but the certificate chain, hostname or CA bundle does not match what ClickHouse presents | Verify the certificate hostname matches the address in the service connection, supply the CA bundle the ingestion image trusts, and test the handshake from the same runner before rerunning |
| Authentication rejected | The user, password or external authenticator setting in the service connection does not match the ClickHouse user | Log in with the same account from the runner using a client, then confirm the user exists and has the intended access under ClickHouse access control |
| Empty query usage or lineage | The connector user lacks SELECT on the system tables it reads, so the query log returns no rows without an obvious error | Run the ingestion with the connector user, then compare the account's grants with the connector documentation and add SELECT on the required system tables |
| Expected databases missing | Schema or database include and exclude filters in the service configuration leave out the target databases | Review the filter patterns against the database names in ClickHouse, remove overly broad exclusions, and rerun metadata ingestion to confirm the tables appear |
| Profiler timeouts on large tables | Full-table profiling scans very large MergeTree tables within the connector's time limit | Restrict profiling to sampled or filtered subsets, exclude raw event tables from profiling, and schedule profiling on a replica or off-peak window |
| Lineage gaps after the query log ages out | ClickHouse query log retention is shorter than the period the lineage job reads, so older queries are no longer available | Check the configured query log retention on the server, align the ingestion schedule so each run reads queries before they expire, and confirm the retention policy with your ClickHouse administrator |
Testing the ClickHouse ingestion before trusting the catalog
Treat the first ingestion run as a test, not as the catalog going live. Before anyone relies on the ClickHouse metadata in OpenMetadata, check that the table and column counts for each target schema match what you see when you query ClickHouse directly, for example by counting rows in system.tables and system.columns filtered to the same databases the connector is configured to read. Mismatches usually point to a schema filter, a database the integration user cannot see, or a table excluded by a pattern in the ingestion configuration. Record the counts you compared, the run identifier and the user that ran the ingestion, so a later run can be compared against the same baseline.
Next, confirm usage and lineage on a query chain you already understand. Choose a short, known path, such as a materialized view or a query that reads one table and writes another, and run it on the pre-production cluster. Then check that the query appears in the usage data, that the table-level edge shows up in lineage, and that column-level lineage matches the columns you expect. Be aware that query usage depends on the query log retained by the server, so a query that has already aged out of the logs will not appear. Profiler results need the same treatment: pick a table and a column, run a sample aggregate directly in ClickHouse over the same rows, and compare the null count, distinct count and min or max that OpenMetadata reports. Differences often come from sampling settings, so note the sample configuration alongside the result.
Run the whole ingestion against a pre-production cluster with representative data and representative query volume before pointing it at production. ClickHouse's production guidance recommends keeping a pre-production environment for this purpose, and the same guidance says to read the changelog before upgrading because minor backward-incompatible changes can occur. Apply that rule to both sides of the integration: check the ClickHouse release notes before you change the server version, and check the OpenMetadata release notes before you change the connector or server version, since ingestion behavior can shift between releases. Once the test run and the spot checks agree, schedule the production run and repeat the same comparisons after the first scheduled run.
Questions buyers ask about the ClickHouse integration
How much effort does the OpenMetadata and ClickHouse integration take in-house compared with a partner?
The effort depends on how much of the work your team already does with ClickHouse and OpenMetadata. Connecting one cluster with a modest number of schemas is mostly configuration, grant setup and a first ingestion run. Effort rises with the number of clusters, the number of schemas and tables to include, how deep you want lineage to go (including column-level lineage and dbt), and how much profiling and data quality testing you plan. Your team pays for DBA time, platform engineering time and review cycles whether it builds in-house or hires a partner. A partner scope should list which clusters, schemas, lineage depth and profiling scope are included, and what the client team must provide. Ask for that breakdown in any quote so you can compare it with your own estimate.
How long does a ClickHouse catalog integration take, and what sets the duration?
No duration figure is given here, so confirm timing against your own environment and a written scope. The main drivers are the number of clusters and schemas, how quickly your DBA team can approve grants, whether a pre-production cluster with representative data exists for testing, and how many lineage, profiling and data quality use cases must be verified. Change control windows and network approvals often take longer than the connector setup itself. Ask any provider for milestones tied to those dependencies, and for a list of decisions that must be made before the build starts.
What does the integration need from our team before work starts?
Plan for four kinds of input from your side: DBA access to create the OpenMetadata service user and grant SELECT on system.* and the target schemas, approval of those grants by your security or data governance owner, network rules that let the OpenMetadata ingestion runner reach the ClickHouse endpoint, and ideally a pre-production ClickHouse cluster. The ClickHouse production guidance recommends a pre-production environment with representative data and queries before changes reach production. Also name an owner for each domain, glossary and ownership decision, since those are needed to make the catalog useful after ingestion.
Can our own team implement the ClickHouse connector without outside help?
Yes, a team with ClickHouse administration experience and someone who operates OpenMetadata can connect a cluster by following the OpenMetadata ClickHouse connector documentation. The harder parts are usually the ones that touch security and operations: scoping the grants to the schemas you need, deciding how profiling runs on large tables, keeping the ingestion schedule within what the cluster can handle, and keeping the setup working through OpenMetadata upgrades. If your team has no one who runs OpenMetadata or ClickHouse day to day, a scoped engagement can cover the build and hand over runbooks. Whichever route you take, confirm the connector stage and feature list for your OpenMetadata version first.
Is profiling safe to run on our production ClickHouse tables?
Profiling reads table data, so it adds load and can touch sensitive values, which makes it a decision rather than a default. Limit profiling to the schemas and tables that need it, schedule runs away from peak query windows, and test the profiler on the pre-production cluster first to measure its effect. Review the sampling settings with your DBA, since reading large tables in full is the main risk. Confirm the service user's read permissions match what profiling needs, and check how profiling results are stored and who can see them in OpenMetadata. Ask any partner to show how it limits profiler scope and what it measures before and after the first production run.
Does the OpenMetadata ClickHouse connector cover ClickHouse Cloud?
The supplied connector documentation covers ClickHouse as a database source, but it does not say that every ClickHouse Cloud feature is handled the same way. ClickHouse server is open source under Apache-2.0, and ClickHouse Inc. separately sells ClickHouse Cloud as a managed service. Before you plan around Cloud, confirm the connection method, the network path from your ingestion runner to the Cloud endpoint, and which system tables and grants are available on your Cloud tier. Test usage, lineage and profiling on a non-production Cloud service before relying on them for governance reporting.
How DeployOpen scopes and delivers the ClickHouse integration
DeployOpen is a Chainscore Labs company that plans, implements, integrates, hardens, documents and supports self-hosted open-source platforms in infrastructure you control. For OpenMetadata and ClickHouse, we start from a written scope covering which ClickHouse clusters, databases and system tables are connected, then build and verify the connector in your environment.
How we scope
- Inventory the ClickHouse clusters, databases and schemas that the catalog must cover, and agree which are in scope.
- Agree the grants for the connector user, including SELECT on system tables and target schemas, before any build starts.
- Set profiling and data quality boundaries for large tables, and record them in the written scope and deliverables.
How we build
- Deploy or confirm the OpenMetadata environment, then configure the ClickHouse service with the agreed connection and ingestion settings.
- Enable usage, lineage, profiler and dbt ingestion only where the scope requires them, and test each one against representative tables.
- Test the setup in a pre-production environment with representative data before any change reaches production catalogs.
How we hand over
- Deliver the connector configuration, the grant script, ingestion schedules and a record of the decisions made during the build.
- Document known gaps in usage, lineage and profiling coverage so your team knows what the catalog does not show.
- Walk your data platform and governance owners through operation, failure checks and how to request changes.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer, so ownership after handover is agreed in advance.
- Review ClickHouse and OpenMetadata release notes against your configuration before planned upgrades are scheduled.
- Retest the connector after version changes, permission changes or new schemas are added to the catalog scope.

