Enabling features, monitoring, and debugging

How to enable and disable features

There are two ways to manage your DataLens configuration:

  • Flags for ./init.sh: For example, --export and --files. This is convenient for quick tests or one-time runs.
  • values.yaml file: Declarative approach for production use. The entire configuration is stored in one place for easy versioning and reuse. values.yaml takes priority over parameters from the ./init.sh arguments.

Tip

Always use a custom values.yaml file to manage your configuration in a production environment.

Key features overview

Most features can be enabled in the values.yaml file under features.

Look at the structure of values.yaml to learn how to enable key features. For most of them you go to the features section, and sometimes also to the infra section.

# ... (start of file: registry, ingress, infra, application, secrets, etc.)
#
# Section that controls connector visibility in the interface
#
visible_connectors:
  - clickhouse
  - postgres
  - chyt
  - ydb
  - mysql
  - greenplum
  - mssql
  - oracle
  - trino
#
# KEY SECTION FOR MANAGING FEATURES
#
features:
  auth:
    enabled: true
    local: true
  meta_manager:
    enabled: false
  ui_api:
    enabled: false
  demo:
    enabled: true        # <-- To disable demo dashboards, set to false
  hc:
    enabled: true
    endpoint: ''
    protocol: ''
  yandex_map:
    enabled: false       # <-- To enable Yandex Maps, set to true and specify the token
    token: ''
  editor:
    enabled: false       # <-- To enable Chart Editor, set to true
  export:
    enabled: false       # <-- To enable workbook export/import, set to true
                 #     This will deploy additional services: temporal, meta_manager, and ui_api
  compeng_sidecar:
    enabled: false
  usage_tracking:
    enabled: false       # <-- To enable usage statistics collection, set to true
                 #     This will require a functioning ClickHouse database
  files:
    enabled: false       # <-- To enable file connectors, set to true
                 #     This will require functioning ClickHouse, Valkey, and S3

infra:
  postgres:
    enabled: true       
  clickhouse:
    enabled: false
  temporal:
    enabled: false
# ... (end of file: config, checksum)

Tip

If the resource settings for services under infra remain unchanged, it is enough to just specify enable in your custom values.yaml. The resources section will be taken from ./helm/values.yaml. This approach also ensures that resource configuration changes are implemented during upgrades. ./helm/values.yaml gets overwritten during upgrades.

Infrastructure features and dependencies

Some features depend on additional services:

  • When using command-line arguments, features are activated automatically.
  • When using values.yaml, you have to enable features manually.
  • The export/import feature requires the following to be active: meta-manager and ui-api under features, and temporal under infra.

Let's cover the features in more detail.

Usage tracking (usage_tracking)

This feature allows you to collect user activity events, e.g., viewing dashboards or running queries, and log them to ClickHouse®. This way, you can monitor DataLens usage.

Uses the following:

  • infra.clickhouse.enabled: ClickHouse® database to store usage metrics.
  • infra.fluent_bit.enabled: Fluent Bit to collect and forward logs.
  • infra.temporal.enabled: Temporal workflow engine for asynchronous processing.

./init.sh flag: --usage-tracking.

File upload and management (files)

This feature enables users to upload CSV and XLS files to create datasets.

Uses the following:

  • infra.clickhouse.enabled: ClickHouse® for file metadata.
  • infra.redis.enabled: Valkey™ for session caching and management.
  • infra.s3.enabled: S3-compatible file storage.

./init.sh flag: --files.

Requires the following systems to be operational:

  • ClickHouse® to store file data.
  • Valkey™ for caches.
  • S3 to store files.

If you have not set up external services, the distribution will deploy the embedded ones, e.g., MinIO as S3.

Background export (background_exports)

Enables full-data file export from paginated table charts.

Uses the following:

  • infra.redis.enabled: Valkey™ for task queuing and state management.
  • infra.s3.enabled: S3 to store exported files.

./init.sh flag: --background-exports.

Caching (cache)

Allows you to cache database queries for repeated use.

Uses infra.redis.enabled: Valkey™ as the caching layer.

./init.sh flag: --cache.

Export functionality (export)

Use this feature to migrate objects, e.g., workbooks, dashboards, and charts, between different DataLens installations. It provides a convenient way to move objects between instances and is also used in CI/CD workflows.

Uses the following:

  • features.meta_manager.enabled: Meta Manager for metadata processing.
  • features.ui_api.enabled: UI API for the export interface.
  • infra.temporal.enabled: Temporal for asynchronous export workflows.

./init.sh flag: --export.

Custom Editor charts (editor)

Enables you to create custom visualizations using JavaScript, HTML, and D3.js library.

./init.sh flag: --editor.

Warning

Deploying additional services increases your resource consumption.

Infrastructure components

Let's talk about the infrastructure components enabling the above features: PostgreSQL, ClickHouse®, Valkey™, S3, Temporal, and Fluent Bit.

PostgreSQL (infra.postgres)

The primary database for all services. The default value is enabled: true.

Databases:

  • pg-auth-db: Authentication service.
  • pg-compeng-db: Computing engine.
  • pg-us-db: User service.
  • pg-meta-manager-db: Meta Manager.
  • pg-demo-db: Demo data.
  • pg-temporal-db: Temporal workflows.
  • pg-temporal-visibility-db: Temporal visibility.

ClickHouse® (infra.clickhouse)

Analytical database used to store file metadata and track DataLens usage. The default value is enabled: false. Used by usage_tracking and files.

Valkey™ (infra.redis)

Caching, task queuing, and session management system. The default value is enabled: false. Used by files, background_exports, and cache.

Databases:

  • 0: Data cache.
  • 1: Mutation cache.
  • 9: File API.
  • 11: File worker.
  • 14: Export.

S3: infra.s3

Object storage for files and export. The default value is enabled: false. Used by files and background_exports.

Buckets:

  • dl-file-uploader-tmp: Temporary files.
  • dl-file-uploader: Persistent files.

Temporal (infra.temporal)

Workflow orchestration platform for asynchronous operations. The default value is enabled: false. Used by usage_tracking and export. Requires a PostgreSQL database.

Fluent Bit (infra.fluent_bit)

Log collection and forwarding agent. The default value is enabled: false. Used by usage_tracking.

Brief description and specifications of infrastructure components:

Dependency graph

usage_tracking
├── clickhouse
├── fluent_bit
└── temporal

files
├── clickhouse
├── redis
└── s3

background_exports
├── redis
└── s3

cache
└── redis

export
├── meta_manager
├── ui_api
└── temporal

Configuration if using external services

We recommend using external infrastructure tools for production workloads. Here, we demonstrate how to configure the integration using ClickHouse®:

  1. Disable the embedded service in values.yaml:

    infra:
    clickhouse:
        enabled: false
    
  2. If TLS is used, enable TLS support and explicitly add a certificate to your values.yaml:

    infra:
    clickhouse:
        ...
        tls:
        enabled: true
        secret:
            ref: null
            ca: |-
            -----BEGIN CERTIFICATE-----
            # ... (the rest of the certificate)
            -----END CERTIFICATE-----
    
    

    Or via a secret: ref: my-existing-secret.

    For more details on secrets, see DataLens On-premises secrets.

  3. Specify the external service connection settings:

    clickhouse:
    CLICKHOUSE_HOST: 'your-ch.db.internal'
    CLICKHOUSE_PORT: '9440' # It is often used for TLS connections
    CLICKHOUSE_USER: 'datalens-user'
    # The password is set under `secrets` in the `values.yaml` file
    
    #...
    secrets:
    CLICKHOUSE_PASSWORD: '12345678'
    

Follow the same steps to set up the S3 storage. You need to disable infra.s3.enabled: false and specify the S3 endpoint and credentials, e.g., Yandex Object Storage.

Results

Now you know how to manage DataLens features using values.yaml. You can enable export, work with files, and understand the associated dependencies.