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、使用しない場合は8123です。
-
DATABASE NAME: デフォルトでは、
default
という名前のデータベースがあります。接続したいデータベースの名前を使用します。 -
USERNAMEとPASSWORD: デフォルトでは、ユーザー名は
default
です。使用ケースに適したユーザー名を使用します。
ClickHouse Cloudサービスの詳細は、ClickHouse Cloudコンソールで確認できます。 接続するサービスを選択し、Connectをクリックしてください:

HTTPSを選択すると、詳細はexample curl
コマンドで確認できます。

セルフマネージドのClickHouseを使用している場合は、接続の詳細がClickHouse管理者によって設定されます。
2. ClickHouseデータソースを作成する
Admin -> Database -> Connectionsに移動し、右上の「Add Connection」ボタンをクリックします。

データソースの名前を選択し、ダイアレクトのドロップダウンからClickHouse
を選択します。フォームにあなたの資格情報を入力してください。

ClickHouse Cloudを使用している場合や、デプロイメントでSSLが必要な場合は、追加設定でSSLをオンにしてください。

最初に接続テストを行い、完了したら、新しいClickHouseデータソースに接続します。

これで、LookerプロジェクトにClickHouseデータソースを添付できるようになるはずです。