Connecting to DataLens
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:
- Activate DataLens.
- Allow access to the cluster from DataLens.
- Create a connection to the cluster in DataLens.
Activating DataLens
Limit
You can only create one DataLens instance in the cloud.
To activate DataLens in your cloud:
- Select a folder on the cloud page.
- Select DataLens.
- Click Activate DataLens.
The DataLens instance will be activated in the selected folder.
Allowing access to a cluster from DataLens
To enable DataLens to connect to your cluster and work with its data, activate the Access from DataLens option when creating a cluster or changing its settings.
Creating a connection to a cluster
-
Make sure that the DataLens service is activated in the appropriate folder and allowed to access the cluster.
-
Go to the folder page and select Managed Service for PostgreSQL.
-
Click on the name of the cluster and select the DataLens tab.
-
Click Create connection.
I don't have the "Create connection" buttonIf instead of the Create connection button you see a message saying "DataLens not activated", it means that you either haven't activated DataLens or connected it in a different folder. To connect your cluster to a DataLens instance from another folder, follow the instructions in the DataLens documentation.
-
Specify connection settings.
-
In the upper-right corner, select the connection scope from the drop-down list:
- Available only to me.
- Available to the company.
-
Check that the settings are correct by clicking Check connection.
-
After successfully checking the connection, click Create.
Once the connection is created, you can:
- Update or delete this connection.
- Create datasets with the cluster data using the connection.
- Visualize the datasets using charts and dashboards.
Viewing a list of cluster connections
- Go to the folder page and select Managed Service for PostgreSQL.
- Click on the name of the cluster and select the DataLens tab.
Updating a cluster connection
- Go to the folder page and select Managed Service for PostgreSQL.
- Click on the name of the cluster and select the DataLens tab.
- Select a connection from the list.
- Change the connection settings and scope.
- Check that the settings are correct by clicking Check connection.
- After successfully checking the connection, click Save.
Deleting a cluster connection
- Go to the folder page and select Managed Service for PostgreSQL.
- Click on the name of the cluster and select the DataLens tab.
- Select a connection from the list.
- Click the at the top of the page and select Delete.
- Confirm the deletion.
Connection settings
- Specify a name for the connection.
- If the cluster and DataLens are in the same folder:
- Go to the Select in Cloud tab.
- 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.
- Select a user from the drop-down list.
- Enter this user's password.
- If the cluster and DataLens are in different folders, use the settings from the instructions in the DataLens documentation.
Leave the Port setting value unchanged.