Architecture DataLens On-premises

What tasks does DataLens On-premises solve?

Note

DataLens On-premises is an analytical BI (business intelligence) platform you can deploy as a distribution package in your infrastructure, either in a cloud or a local server.

DataLens uses the push-down approach:

  1. A user opens a dashboard.
  2. Based on the chart settings, the system generates SQL queries or API requests.
  3. Queries go directly to data sources (PostgreSQL, ClickHouse®, Greenplum®).
  4. The source runs the query and returns the aggregated result for visualization.
  5. The data is visualized as charts and tables, which you can download as a PDF report.

In its PostgreSQL service database, DataLens only stores metadata: information about connections (as plain text, no passwords), datasets, charts, and dashboards.

How business users interact with DataLens

The typical steps include:

  1. Creating a connection. The user specifies credentials to access the data source.

  2. Creating a dataset. The user describes the data model: selects tables, configures links between them, and creates calculated fields.

  3. Creating a chart. Based on the dataset, the used renders a visualization via a dedicated interface (wizard or QL).

  4. Building a dashboard. The user places several charts on one page, adds filters (selectors), and configures links between them.

Learn more about creating dashboards in Creating a dashboard in DataLens On-premises.

Under the hood: Key components

DataLens On-premises consists of multiple Docker containers, i.e., isolated application runtime environments. The latter contain everything the apps need to operate: code, libraries, dependencies, configuration, and file system. Containers are orchestrated by Kubernetes, an open-source software that automates the deployment and scaling of containerized applications and their management within a cluster.

Here is a list of key services available after installation:

  • Auth: Authentication service that manages user access.
  • UI: Frontend service that renders the UI to the browser. This is what the user directly interacts with.
  • Control API: Backend service that manages connections and datasets.
  • Data API: Backend service that handles requests from charts, generates data source query code, and proxies its execution. This is one of the most resource-heavy components.
  • United Storage (US): Metadata storage service responsible for all system objects: dashboards, charts, folders, and access permissions to them. It runs on top of PostgreSQL.

Results

We have covered the basic principles of the DataLens On-premises architecture. As you now know, DataLens requests data but does not store it. You have explored the DataLens key components and typical user steps.