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 PostgreSQL
  • Getting started
    • All guides
      • Viewing cluster logs
      • Performance diagnostics
      • Monitoring the state of clusters and hosts
      • Connecting to DataLens
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Activating DataLens
  • Enabling DataLens access to the cluster
  • 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 to DataLens

Connecting to a PostgreSQL cluster from DataLens

Written by
Yandex Cloud
Updated at December 5, 2025
  • Activating DataLens
  • Enabling DataLens access to the cluster
  • 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 Yandex DataLens:

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

Activating DataLensActivating DataLens

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 DataLens access to the clusterEnabling DataLens access to the cluster

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

screen01

Creating a cluster connectionCreating a cluster connection

Management console
  1. Make sure DataLens is activated in the relevant folder and has permission to access the cluster.

  2. Go to Managed Service for PostgreSQL.

    screen02

  3. Click the relevant cluster’s name and open the DataLens tab.

  4. Click Create connection.

    screen03

    I have no Create connection button

    If you see the DataLens not activated message instead of the Create connection button, you have either not yet activated DataLens or activated 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 a successful connection test, click Create connection.

    screen04

  8. In the window that opens, specify the connection name and click Create.

    screen05

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.

Viewing a list of cluster connectionsViewing a list of cluster connections

Management console
  1. Go to Managed Service for PostgreSQL.

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

    screen11

Updating a cluster connectionUpdating a cluster connection

Management console
  1. Go to Managed Service for PostgreSQL.

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

  3. Select the connection from the list.

    screen12

  4. Change the settings.

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

  6. After a successful connection test, click Save changes.

    screen06

Deleting a cluster connectionDeleting a cluster connection

Management console
  1. Go to Managed Service for PostgreSQL.

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

  3. Select the connection from the list.

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

    screen07

  5. In the window that opens, click Delete.

    screen08

Connection settingsConnection settings

Management console
  1. If your cluster and DataLens are in the same organization:

    1. Navigate to the Select in organization tab.

    2. Select the cloud and folder where your cluster is located.

    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. Leave the Port setting unchanged.

    5. Select Path to database from the drop-down list.

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

    7. Enter this user's password.

    8. Specify the cache TTL or leave the default value. The recommended value is 300 seconds (5 minutes).

    9. Configure the Raw SQL level.

      screen09

    10. To explicitly specify collation for your database queries, navigate to Advanced connection settings. Select a Query-level collation mode:

      • Auto: Applies the default setting. The decision to enable the en_US locale is delegated to DataLens.
      • On: Applies the DataLens setting. The en_US locale is specified for individual expressions within a query. This ensures the server uses the appropriate sorting logic, regardless of its settings or the specific tables involved. Use the DataLens setting if your database locale is incompatible with DataLens. For more information about the locale and the LC_COLLATE setting, see Creating a cluster.
      • Off: Applies the default setting. DataLens uses database-level locale settings.

      screen10

  2. If the cluster and DataLens belong to different organizations, apply the configuration from this DataLens tutorial.

Was the article helpful?

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