Looker
Looker 可以通过官方的 ClickHouse 数据源连接到 ClickHouse Cloud 或本地部署。
1. 收集您的连接详细信息
To connect to ClickHouse with HTTP(S) you need this information:
-
The HOST and PORT: typically, the port is 8443 when using TLS or 8123 when not using TLS.
-
The DATABASE NAME: out of the box, there is a database named
default
, use the name of the database that you want to connect to. -
The USERNAME and PASSWORD: out of the box, the username is
default
. Use the username appropriate for your use case.
The details for your ClickHouse Cloud service are available in the ClickHouse Cloud console. Select the service that you will connect to and click Connect:

Choose HTTPS, and the details are available in an example curl
command.

If you are using self-managed ClickHouse, the connection details are set by your ClickHouse administrator.
ClickHouseにHTTP(S)で接続するには、次の情報が必要です:
-
HOSTとPORT: 通常、ポートはTLSを使用する場合は8443、TLSを使用しない場合は8123です。
-
DATABASE NAME: デフォルトでは、
default
という名前のデータベースがあります。接続したいデータベースの名前を使用してください。 -
USERNAMEとPASSWORD: デフォルトでは、ユーザー名は
default
です。ご利用のケースに適したユーザー名を使用してください。
ClickHouse Cloudサービスの詳細はClickHouse Cloudコンソールで確認できます。接続するサービスを選択し、Connectをクリックします:

HTTPSを選択すると、詳細が例のcurl
コマンドで提供されます。

セルフマネージドのClickHouseを使用している場合、接続の詳細はClickHouseの管理者によって設定されます。
2. 创建一个 ClickHouse 数据源
导航至 Admin -> Database -> Connections,并点击右上角的 "Add Connection" 按钮。

为您的数据源选择一个名称,并从方言下拉菜单中选择 ClickHouse
。在表单中输入您的凭据。

如果您使用的是 ClickHouse Cloud 或您的部署需要 SSL,请确保在附加设置中启用 SSL。

首先测试您的连接,完成后,连接到新的 ClickHouse 数据源。

现在您应该能够将 ClickHouse 数据源附加到您的 Looker 项目中。