You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lightdash is the **AI-first BI platform** built for modern data teams, combining the openness of dbt with the performance of ClickHouse. By connecting ClickHouse to Lightdash, teams get an **AI-powered self-serve analytics experience** grounded in their dbt semantic layer, so every question is answered with governed, consistent metrics.
30
29
31
-
# Connecting Lightdash to ClickHouse
30
+
Developers love Lightdash for its open architecture, version-controlled YAML models, and integrations that fit directly into their workflow - from GitHub to the IDE.
32
31
33
-
<PartnerBadge/>
32
+
This partnership brings together **ClickHouse’s speed** and **Lightdash’s developer experience**, making it easier than ever to explore, visualize, and automate insights with AI.
34
33
35
-
Lightdash is the **AI-first BI platform** built for modern data teams, combining the openness of dbt with the performance of ClickHouse. By connecting ClickHouse to Lightdash, teams get an **AI-powered self-serve analytics experience** grounded in their dbt semantic layer, so every question is answered with governed, consistent metrics.
34
+
## Build an interactive dashboard with Lightdash and ClickHouse
36
35
37
-
Developers love Lightdash for its open architecture, version-controlled YAML models, and integrations that fit directly into their workflow - from GitHub to the IDE.
38
-
This partnership brings together **ClickHouse’s speed** and **Lightdash’s developer experience**, making it easier than ever to explore, visualize, and automate insights with AI.
36
+
In this guide, you’ll see how **Lightdash** connects to **ClickHouse** to explore your dbt models and build interactive dashboards.
37
+
The example below shows a finished dashboard powered by data from ClickHouse.
##Connection data required {#connection-data-required}
43
+
### Gather connection data {#connection-data-required}
42
44
43
45
When setting up your connection between Lightdash and ClickHouse, you’ll need the following details:
44
46
@@ -56,7 +58,7 @@ When setting up your connection between Lightdash and ClickHouse, you’ll need
56
58
57
59
---
58
60
59
-
##Configuring your dbt profile for ClickHouse {#configuring-your-dbt-profile-for-clickhouse}
61
+
### Configure your dbt profile for ClickHouse {#configuring-your-dbt-profile-for-clickhouse}
60
62
61
63
In Lightdash, connections are based on your existing **dbt project**.
62
64
To connect ClickHouse, make sure your local `~/.dbt/profiles.yml` file contains a valid ClickHouse target configuration.
@@ -66,18 +68,19 @@ For example:
66
68
<Imagesize="md"img={lightdash_01}alt="Example profiles.yml configuration for a lightdash-clickhouse project"border />
67
69
<br/>
68
70
69
-
##Creating a Lightdash project connected to ClickHouse {#creating-a-lightdash-project-connected-to-clickhouse}
71
+
### Create a Lightdash project connected to ClickHouse {#creating-a-lightdash-project-connected-to-clickhouse}
70
72
71
73
Once your dbt profile is configured for ClickHouse, you’ll also need to connect your **dbt project** to Lightdash.
72
74
73
-
Because this process is the same for all data warehouses, we won’t go into detail here — you can follow the official Lightdash guide for importing a dbt project:
75
+
Because this process is the same for all data warehouses, we won’t go into detail here — you can follow the official Lightdash guide for importing a dbt project:
76
+
74
77
[Import a dbt project → Lightdash Docs](https://docs.lightdash.com/get-started/setup-lightdash/connect-project#2-import-a-dbt-project?utm_source=clickhouse&utm_medium=partner&utm_campaign=integration_docs)
75
78
76
79
After connecting your dbt project, Lightdash will automatically detect your ClickHouse configuration from the `profiles.yml` file. Once the connection test succeeds, you’ll be able to start exploring your dbt models and building dashboards powered by ClickHouse.
77
80
78
81
---
79
82
80
-
##Exploring your ClickHouse data in Lightdash {#exploring-your-clickhouse-data-in-lightdash}
83
+
### Explore your ClickHouse data in Lightdash {#exploring-your-clickhouse-data-in-lightdash}
81
84
82
85
Once connected, Lightdash automatically syncs your dbt models and exposes:
83
86
@@ -89,7 +92,7 @@ You can now build dashboards, share insights, and even use **Ask AI** to generat
89
92
90
93
---
91
94
92
-
##Defining metrics and dimensions in Lightdash {#defining-metrics-and-dimensions-in-lightdash}
95
+
### Define metrics and dimensions in Lightdash {#defining-metrics-and-dimensions-in-lightdash}
93
96
94
97
In Lightdash, all **metrics** and **dimensions** are defined directly in your dbt model `.yml` files. This makes your business logic version-controlled, consistent, and fully transparent.
95
98
@@ -98,22 +101,17 @@ In Lightdash, all **metrics** and **dimensions** are defined directly in your db
98
101
99
102
Defining these in YAML ensures your team is using the same definitions across dashboards and analyses. For example, you can create reusable metrics like `total_order_count`, `total_revenue`, or `avg_order_value` right next to your dbt models — no duplication required in the UI.
100
103
101
-
To learn more about how to define these, see the Lightdash guides:
104
+
To learn more about how to define these, see the following Lightdash guides:
102
105
-[How to create metrics](https://docs.lightdash.com/guides/how-to-create-metrics?utm_source=clickhouse&utm_medium=partner&utm_campaign=integration_docs)
103
106
-[How to create dimensions](https://docs.lightdash.com/guides/how-to-create-dimensions?utm_source=clickhouse&utm_medium=partner&utm_campaign=integration_docs)
104
107
105
108
---
106
109
107
-
##Querying your data from tables {#querying-your-data-from-tables}
110
+
### Query your data from tables {#querying-your-data-from-tables}
108
111
109
112
Once your dbt project is connected and synced with Lightdash, you can start exploring data directly from your **tables** (or “explores”).
110
113
Each table represents a dbt model and includes the metrics and dimensions you’ve defined in YAML.
111
114
112
-
## Querying your data from tables {#querying-your-data-from-tables}
113
-
114
-
Once your dbt project is connected and synced with Lightdash, you can start exploring data directly from your **tables** (also called “explores”).
115
-
Each explore represents a dbt model and includes the metrics and dimensions you’ve defined in YAML.
116
-
117
115
The **Explore** page is made up of five main areas:
118
116
119
117
1.**Dimensions and Metrics** — all fields available on the selected table
@@ -131,7 +129,7 @@ For a deeper look at explores and how to query from your tables, see:
131
129
132
130
---
133
131
134
-
##Building dashboards {#building-dashboards}
132
+
### Build dashboards {#building-dashboards}
135
133
136
134
Once you’ve explored your data and saved visualizations, you can combine them into **dashboards** to share with your team.
137
135
@@ -152,7 +150,7 @@ Learn more about how to create and organize dashboards here:
152
150
153
151
---
154
152
155
-
## Ask AI: self-serve analytics powered by dbt {#ask-ai}
153
+
###Ask AI: self-serve analytics powered by dbt {#ask-ai}
156
154
157
155
Lightdash’s **AI Agents** make data exploration truly self-serve.
158
156
Instead of writing queries, users can simply ask questions in plain language — like *“What was our monthly revenue growth?”* — and the AI Agent automatically generates the right visualization, referencing your dbt-defined metrics and models to ensure accuracy and consistency.
@@ -161,10 +159,11 @@ It’s powered by the same semantic layer you use in dbt, meaning every answer s
161
159
162
160
<Imagesize="lg"img={lightdash_06}alt="Lightdash Ask AI interface showing natural language query powered by dbt metrics"border />
Learn more about AI Agents here: [AI Agents → Lightdash Docs](https://docs.lightdash.com/guides/ai-agents?utm_source=clickhouse&utm_medium=partner&utm_campaign=integration_docs)
164
+
:::
165
+
</VerticalStepper>
167
166
168
-
## Learn more
167
+
## Learn more {#learn-more}
169
168
170
169
To learn more about connecting dbt projects to Lightdash, visit the [Lightdash Docs → ClickHouse setup](https://docs.lightdash.com/get-started/setup-lightdash/connect-project#clickhouse?utm_source=clickhouse&utm_medium=partner&utm_campaign=integration_docs).
0 commit comments