-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Luzmo to data visualization integrations
- Loading branch information
Showing
7 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions
63
docs/en/integrations/data-visualization/luzmo-and-clickhouse.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
sidebar_label: Luzmo | ||
slug: /en/integrations/luzmo | ||
keywords: [ clickhouse, luzmo, connect, integrate, ui, embedded ] | ||
description: Luzmo is an embedded analytics platform with a native ClickHouse integration, purpose-built for Software and SaaS applications. | ||
--- | ||
import ConnectionDetails from '@site/docs/en/_snippets/_gather_your_details_http.mdx'; | ||
|
||
# Integrating Luzmo with ClickHouse | ||
|
||
## 1. Setup a ClickHouse connection | ||
|
||
To make a connection to ClickHouse, navigate to the **Connections page**, select **New Connection**, then select the ClickHouse from the New Connection modal. | ||
|
||
<p> | ||
<img src={require('./images/luzmo_01.png').default} class="image" alt="Create a ClickHouse connection" /> | ||
</p> | ||
|
||
You'll be asked to provide a **host**, **username** and **password**: | ||
|
||
<p> | ||
<img src={require('./images/luzmo_02.png').default} class="image" alt="Provide ClickHouse connection details" /> | ||
</p> | ||
|
||
* **Host**: this is the host where your ClickHouse database is exposed. Note that only `https` is allowed here in order to securely transfer data over the wire. The structure of the host url expects: `https://url-to-clickhouse-db:port/database` | ||
By default, the plugin will connect to the 'default' database and the 443 port. By providing a database after the '/' you can configure which database to connect to. | ||
* **Username**: the username that will be used to connect to your ClickHouse cluster. | ||
* **Password**: the password to connect to your ClickHouse cluster | ||
|
||
Please refer to the examples in our developer documentation to find out how to [create a connection to ClickHouse](https://developer.luzmo.com/api/createAccount?exampleSection=AccountCreateClickhouseRequestBody) via our API. | ||
|
||
## 2. Add datasets | ||
|
||
Once you have connected your ClickHouse you can add datasets as explained [here](https://academy.luzmo.com/article/ldx3iltg). You can select one or multiple datasets as available in your ClickHouse and [link](https://academy.luzmo.com/article/gkrx48x5) them in Luzmo to ensure they can be used together in a dashboard. Also make sure to check out this article on [Preparing your data for analytics](https://academy.luzmo.com/article/u492qov0). | ||
|
||
To find out how to add datasets using our API, please refer to [this example in our developer documentation](https://developer.luzmo.com/api/createDataprovider?exampleSection=DataproviderCreateClickhouseRequestBody). | ||
|
||
You can now use your datasets to build beautiful (embedded) dashboards, or even power an AI Data Analyst ([Luzmo IQ](https://luzmo.com/iq)) that can answer your clients' questions. | ||
|
||
<p> | ||
<img src={require('./images/luzmo_03.png').default} class="image" alt="Luzmo dashboard example" /> | ||
</p> | ||
|
||
## Usage notes | ||
|
||
1. The Luzmo ClickHouse connector uses the HTTP API interface (typically running on port 8123) to connect. | ||
2. If you use tables with the `Distributed` table engine some Luzmo-charts might fail when `distributed_product_mode` is `deny`. This should only occur, however, if you link the table to another table and use that link in a chart. In that case make sure to set the `distributed_product_mode` to another option that makes sense for you within your ClickHouse cluster. If you are using ClickHouse Cloud you can safely ignore this setting. | ||
3. To ensure that e.g. only the Luzmo application can access your ClickHouse instance, it is highly recommended to **whitelist** [Luzmo's range of static IP addresses](https://academy.luzmo.com/article/u9on8gbm). We also recommend using a technical read-only user. | ||
4. The ClickHouse connector currently supports following data types: | ||
|
||
| ClickHouse Type | Luzmo Type | | ||
| --- | --- | | ||
| UInt | numeric | | ||
| Int | numeric | | ||
| Float | numeric | | ||
| Decimal | numeric | | ||
| Date | datetime | | ||
| DateTime | datetime | | ||
| String | hierarchy | | ||
| Enum | hierarchy | | ||
| FixedString | hierarchy | | ||
| UUID | hierarchy | | ||
| Bool | hierarchy | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters