DataLens
DataLens is an open-source business intelligence (BI) and data visualization tool that enables users to analyze and display data from various sources, including YDB. DataLens allows you to describe data models, create charts and other visualizations, build dashboards, and provide collaborative access to analytics.
Prerequisites
DataLens must be deployed and configured.
Note
This article covers the integration of self-managed YDB and DataLens. For documentation on integrating the respective managed services, refer to the Yandex Cloud documentation.
Adding a database connection to YDB
To create a connection to YDB:
-
Go to the workbook page or create a new one.
-
In the top right corner, click Create → Connection.
-
Select the YDB connection.
-
Choose an authentication type:
AnonymousPasswordOAuth- Host name. Specify the hostname for YDB connection.
- Port. Specify the connection port for YDB. The default port is 2135.
- Database path. Specify the name of the database to connect to.
- Host name. Specify the hostname for YDB connection.
- Port. Specify the connection port for YDB. The default port is 2135.
- Database path. Specify the name of the database to connect to.
- Username. Enter the username to connect to YDB.
- Password. Enter the user password.
- OAuth token. Provide the OAuth token to access YDB.
- Host name. Specify the hostname for YDB connection.
- Port. Specify the connection port for YDB. The default port is 2135.
- Database path. Specify the name of the database to connect to.
- Cache lifetime in seconds. Set the cache lifetime or leave the default value. The recommended value is 300 seconds (5 minutes).
- SQL query access level. Allows the use of custom SQL queries to create a dataset.
-
Click Create connection.
-
Specify a connection name and click Create.
-
Proceed to creating a dataset.