Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for ClickHouse®
  • Getting started
    • All guides
      • Viewing cluster logs
      • Monitoring the state of clusters and hosts
      • Connecting from DataLens
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Activating DataLens
  • Enabling access to a cluster from DataLens
  • Creating a cluster connection
  • Viewing a list of cluster connections
  • Updating a cluster connection
  • Deleting a cluster connection
  • Connection settings
  1. Step-by-step guides
  2. Logs and monitoring
  3. Connecting from DataLens

Connecting to a ClickHouse® cluster from DataLens

Written by
Yandex Cloud
Updated at December 17, 2025
  • Activating DataLens
  • Enabling access to a cluster from DataLens
  • Creating a cluster connection
  • Viewing a list of cluster connections
  • Updating a cluster connection
  • Deleting a cluster connection
  • Connection settings

Yandex DataLens is a business intelligence service, that lets you upload, process and visualize data for analysing and testing hypotheses. It can help you make marketing decisions for your product.

To use an existing cluster as a data source for DataLens:

  1. Activate Yandex DataLens.
  2. Enable access to the cluster from DataLens.
  3. Create a cluster connection in DataLens.

Activating DataLensActivating DataLens

You can only connect a cluster to DataLens within your cloud if DataLens is activated in the same folder as the cluster.

If DataLens is activated in a different folder, you can connect a cluster as an external resource as long as the cluster is publicly accessible. Learn more about connecting to a cluster from a different folder here.

Limit

You can only create one DataLens instance in the cloud.

Management console
  1. In the management console, go to the folder page.
  2. Go to DataLens.
  3. Click Activate DataLens.

The DataLens instance will be activated in the selected folder.

Enabling access to a cluster from DataLensEnabling access to a cluster from DataLens

To enable DataLens to connect to your cluster and work with its data, enable DataLens access when creating or reconfiguring the cluster.

Creating a cluster connectionCreating a cluster connection

Management console
  1. Make sure DataLens is activated in the appropriate folder and you can access the cluster from it.

  2. Go to Managed Service for ClickHouse.

  3. Click the cluster name and select the DataLens tab.

  4. Click Create connection.

    I have no Create connection button

    If you see a message saying DataLens not activated instead of the Create connection button, it means that you either have not activated DataLens yet or have connected it in a different folder. To connect your cluster to a DataLens instance from another folder, follow this DataLens guide.

  5. Set up your connection.

  6. Check that the settings are correct by clicking Check connection.

  7. After successfully checking the connection, click Create.

After creating the connection, you can:

  • Update or delete this connection.
  • Use this connection to create datasets from the cluster data.
  • Visualize the datasets using charts and dashboards.

See also an example of ClickHouse® data visualization.

Viewing a list of cluster connectionsViewing a list of cluster connections

Management console
  1. In the management console, select the folder the cluster is in.

  2. Go to Managed Service for ClickHouse.

  3. Click the cluster name and select the DataLens tab.

    My connection is not on the list

    If your connection is missing from the list, it means the cluster is connected to DataLens as an external source. Learn more about DataLens here.

Updating a cluster connectionUpdating a cluster connection

Management console
  1. In the management console, select the folder the cluster is in.

  2. Go to Managed Service for ClickHouse.

  3. Click the cluster name and select the DataLens tab.

  4. Select the connection from the list.

    My connection is not on the list

    If your connection is missing from the list, it means the cluster is connected to DataLens as an external source. Learn more about DataLens here.

  5. Change the settings.

  6. Check that the settings are correct by clicking Check connection.

  7. After successfully checking the connection, click Save.

Deleting a cluster connectionDeleting a cluster connection

Management console
  1. In the management console, select the folder the cluster is in.

  2. Go to Managed Service for ClickHouse.

  3. Click the cluster name and select the DataLens tab.

  4. Select the connection from the list.

    My connection is not on the list

    If your connection is missing from the list, it means the cluster is connected to DataLens as an external source. Learn more about DataLens here.

  5. Click at the top of the page and select Delete.

  6. In the window that opens, click Delete.

Connection settingsConnection settings

Management console

In the management console, when creating or updating a cluster connection:

  1. Specify a name for the connection.

  2. Go to the Select in folder tab.

  3. Select the cluster and its host from the drop-down lists or create a new cluster in the folder with DataLens by clicking Create new.

  4. Select the user from the drop-down list.

  5. Enter this user's password.

    Leave the values of the following settings unchanged: HTTP interface port, HTTPS, Cache TTL in seconds, and Raw SQL level.

My cluster and DataLens are in different folders

If your cluster and DataLens are in different folders, use the settings from this DataLens guide.

If the Read only setting is enabled for the user, make sure its value is 0 or 2. Otherwise, the connection will not work.

ClickHouse® is a registered trademark of ClickHouse, Inc.

Was the article helpful?

Previous
Monitoring the state of clusters and hosts
Next
All tutorials
© 2025 Direct Cursus Technology L.L.C.