跳到主要内容
跳到主要内容

将 Zing Data 连接到 ClickHouse

Community Maintained

Zing Data 是一个数据探索和可视化平台。Zing Data 使用 ClickHouse 提供的 JS 驱动程序连接到 ClickHouse。

如何连接

  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の管理者によって設定されます。

  1. 下载或访问 Zing Data

  2. 添加数据源

    • 要通过 Zing Data 与您的 ClickHouse 数据进行交互,您需要定义一个 datasource。在 Zing Data 的移动应用菜单中,选择 Sources,然后单击 Add a Datasource

    • 要在网页上添加数据源,请单击顶部菜单中的 Data Sources,然后单击 New Datasource,从下拉菜单中选择 Clickhouse


  3. 填写连接详细信息并单击 Check Connection


  4. 如果连接成功,Zing 将引导您选择表。选择所需的表并单击 Save。如果 Zing 无法连接到您的数据源,您将收到一条消息,提示您检查凭据并重试。如果在检查凭据并重试后仍然遇到问题,请 在此联系 Zing 支持。


  5. 一旦 Clickhouse 数据源被添加,它将在您的 Zing 组织中的 Data Sources / Sources 标签下对所有人可用。

在 Zing Data 中创建图表和仪表板

  1. 添加 Clickhouse 数据源后,在网页上点击 Zing App,或者在移动端点击数据源以开始创建图表。

  2. 在表列表中点击一个表以创建图表。


  3. 使用可视化查询构建器选择所需字段、聚合等,然后单击 Run Question


  4. 如果您熟悉 SQL,您还可以编写自定义 SQL 来运行查询并创建图表。

  5. 示例图表如下所示。可以使用三点菜单保存问题。您可以对图表进行评论,标记团队成员,创建实时警报,改变图表类型等。


  6. 可以使用主屏幕上 Dashboards 下的 "+" 图标创建仪表板。现有问题可以被拖放到仪表板上显示。