Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
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
  • Allowing access to a cluster from DataLens
  • Creating a connection to a cluster
  • 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 March 6, 2025
  • Activating DataLens
  • Allowing access to a cluster from DataLens
  • Creating a connection to a cluster
  • 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 connect a cluster to DataLens within your cloud only 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 provided that public access to the cluster is enabled. Learn more about how to connect to a cluster from a different folder.

Limit

You can only create one DataLens instance in the cloud.

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

The DataLens instance will be activated in the selected folder.

Allowing access to a cluster from DataLensAllowing access to a cluster from DataLens

To enable DataLens to connect to your cluster and work with its data, activate the DataLens access option when creating a cluster or updating its settings.

Creating a connection to a clusterCreating a connection to a cluster

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

  2. In the management console, go to the folder page and select Managed Service for ClickHouse.

  3. Click the cluster name and open 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 did not activate DataLens or connected it in a different folder. To connect your cluster to a DataLens instance from another folder, follow the guide in the DataLens documentation.

  5. Specify the connection settings.

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

  7. After successfully checking the connection, click Create.

Once the connection is created, you can:

  • Update or delete the connection.
  • Create datasets with cluster data using the connection.
  • 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, go to the folder page and select Managed Service for ClickHouse.

  2. Click the cluster name and open the DataLens tab.

    My connection is not in the list

    If the required connection is missing from the list, this means that the cluster is connected to DataLens as an external source. Learn more about DataLens.

Updating a cluster connectionUpdating a cluster connection

Management console
  1. In the management console, go to the folder page and select Managed Service for ClickHouse.

  2. Click the cluster name and open the DataLens tab.

  3. Select a connection from the list.

    My connection is not in the list

    If the required connection is missing from the list, this means that the cluster is connected to DataLens as an external source. Learn more about DataLens.

  4. Change the settings.

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

  6. After successfully checking the connection, click Save.

Deleting a cluster connectionDeleting a cluster connection

Management console
  1. In the management console, go to the folder page and select Managed Service for ClickHouse.

  2. Click the cluster name and open the DataLens tab.

  3. Select a connection from the list.

    My connection is not in the list

    If the required connection is missing from the list, this means that the cluster is connected to DataLens as an external source. Learn more about DataLens.

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

  5. 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 a 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.

The cluster and DataLens are in different folders

If the cluster and DataLens are in different folders, use the settings from the instructions in the DataLens documentation.

If the Read only setting is selected 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
Yandex project
© 2025 Yandex.Cloud LLC