Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Managed Service for ClickHouse®
  • Getting started
    • All tutorials
    • Adding data to the database
    • Migrating data to Managed Service for ClickHouse® using ClickHouse®
    • Migrating data to Managed Service for ClickHouse® using Data Transfer
    • Sharding tables
    • Data resharding in a cluster
    • Using a hybrid storage
    • Fetching data from Managed Service for Apache Kafka®
    • Fetching data from RabbitMQ
    • Exchanging data with Yandex Data Processing
    • Configuring Yandex Cloud DNS for cluster access from other cloud networks
    • Analyzing Yandex Object Storage logs in Yandex DataLens
    • Configuring Managed Service for ClickHouse® for Graphite
    • Saving a Yandex Data Streams data stream in Managed Service for ClickHouse®
    • Migrating a database from Google BigQuery
    • Delivering data from Managed Service for Apache Kafka® using Yandex Data Transfer
    • Migrating data from Yandex Direct using Yandex Cloud Functions, Yandex Object Storage, and Yandex Data Transfer
    • Loading data from Yandex Object Storage to Managed Service for ClickHouse® using Yandex Data Transfer
    • Migrating a database from Greenplum® to ClickHouse®
    • Migrating a database from MySQL® to ClickHouse® using Yandex Data Transfer
    • Asynchronously replicating data from PostgreSQL to ClickHouse®
    • Loading data from Yandex Managed Service for YDB to Managed Service for ClickHouse® using Yandex Data Transfer
    • Copying data from Managed Service for OpenSearch to Managed Service for ClickHouse® using Yandex Data Transfer
    • Entering data into storage systems
    • Using parameters
    • Examples of creating QL charts
    • Web analytics with funnels and cohorts calculated based on Yandex Metrica data
    • AppMetrica: direct connection
    • AppMetrica: data export, post-processing, and visualization
    • Loading data from Yandex Metrica to a ClickHouse® data mart
    • Yandex Tracker: data export and visualization
    • Retail chain's dashboard based on a ClickHouse® DB
    • Analyzing sales and locations of pizzerias based on data from the ClickHouse® database and Marketplace
    • Geocoding with the Yandex Maps API for data visualization in DataLens
    • Importing data from Object Storage, processing and exporting to Managed Service for ClickHouse®
    • Working with data using Query
    • Federated data queries using Query
  • Access management
  • Pricing policy
  • Terraform reference
  • Yandex Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes

In this article:

  • Getting started
  • Required paid resources
  • Create a DB for storing the Tracker data
  • Create an OAuth token for Tracker access
  • Create a Cloud Functions function for importing the data
  • Create a connection in DataLens
  • Create a dataset
  • Create a chart
  • Create a dashboard and add charts to it
  • How to delete the resources you created
  1. Tutorials
  2. Yandex Tracker: data export and visualization

Yandex Tracker: data export and visualization

Written by
Yandex Cloud
Updated at May 14, 2025
  • Getting started
    • Required paid resources
  • Create a DB for storing the Tracker data
  • Create an OAuth token for Tracker access
  • Create a Cloud Functions function for importing the data
  • Create a connection in DataLens
  • Create a dataset
  • Create a chart
  • Create a dashboard and add charts to it
  • How to delete the resources you created

Visualizing data from Yandex Tracker to Yandex DataLens allows you to build more advanced analytics than when using the Tracker tools.

To visualize data from Tracker to DataLens:

  • Set up regular export of data to external storage.
  • Visualize the required metrics and data using DataLens.

To visualize the data, follow these steps:

  1. Get your cloud ready.
  2. Create a DB for storing the Tracker data.
  3. Create an OAuth token for Tracker access.
  4. Create a Cloud Functions function for importing the data.
  5. Create a connection to DataLens.
  6. Create a dataset.
  7. Create a chart.
  8. Create a dashboard in DataLens and add charts to it.

Getting startedGetting started

Note

We recommend creating a separate Tracker account to use the service.

Sign up in Yandex Cloud and create a billing account:

  1. Navigate to the management console and log in to Yandex Cloud or register a new account.
  2. On the Yandex Cloud Billing page, make sure you have a billing account linked and it has the ACTIVE or TRIAL_ACTIVE status. If you do not have a billing account, create one and link a cloud to it.

If you have an active billing account, you can navigate to the cloud page to create or select a folder for your infrastructure to operate in.

Learn more about clouds and folders.

Required paid resourcesRequired paid resources

  • Continuously running Managed Service for ClickHouse® cluster (see Managed Service for ClickHouse® pricing).
  • Cloud Functions function usage (see Cloud Functions pricing).

If you no longer need the resources you created, delete them.

Create a DB for storing the Tracker dataCreate a DB for storing the Tracker data

  1. Navigate to the management console.
  2. In the top-left corner, click All services.
  3. Select Data platform → Managed Service for ClickHouse.
  4. Click Create ClickHouse cluster.
  5. Specify the cluster parameters:
    • Basic parameters:
      • Environment: PRODUCTION
      • Version: 22.8 LTS
    • Resources:
      • Platform: Intel Ice Lake
      • Type: standart
      • Host class: s3-c2-m8 (2 vCPU, 8 GB)
    • Size of storage: 30 GB
    • Hosts:
      • Public access: Enabled
    • DBMS settings:
      • User management via SQL: Disabled
      • Managing databases via SQL: Disabled
      • Username: tracker_data
      • DB name: db1
    • Service settings:
      • DataLens access: Enabled
      • Serverless access: Enabled
        For a full list of settings, see Managed Service for ClickHouse® settings.
  6. Click Create cluster. Wait for the new cluster status to change to Alive.
  7. Copy and save the host name for further Cloud Functions setup.

Create an OAuth token for Tracker accessCreate an OAuth token for Tracker access

  1. Go to the Create an app page.

  2. Fill in the fields as follows:

    • Service name
    • Platforms: Web services
    • Redirect URI: Click Enter URL for debugging or type https://oauth.yandex.ru/verification_code.
  3. Under Data access, specify:

    • Read from tracker
    • Write to tracker
  4. Click Create app.

  5. In the window that opens, enter the following URL in the browser search bar:

    https://oauth.yandex.ru/authorize?response_type=token&client_id=<app_ID>
    

    Where client_id is the new app's ID in the ClientID field.

  6. Log in under the Tracker account to be used for data visualization.

  7. Save the received OAuth token.

Create a Cloud Functions function for importing the dataCreate a Cloud Functions function for importing the data

  1. Navigate to the management console.
  2. In the top-left corner, click All services.
  3. Select Serverless computing → Cloud Functions.
  4. Click Create function.
  5. Specify a name for the function and click Create.
  6. In the Editor window that opens, select the Python runtime environment.
  7. Click Continue.
  8. In the Method field, click ZIP archive.
  9. Attach a test archive.
  10. In the Entry point field, specify tracker_import.handler.
  11. Under Parameters, specify:
    • Timeout: 60
    • Memory: 1024
    • Environment variables:
      • TRACKER_ORG_ID: ID of the Yandex 360 for Business organization.

        Note

        If you are using a Yandex Cloud Organization organization (you can check this on the administration page), replace the X-Org-ID header with X-Cloud-Org-Id in the tracker_import.py function code.

      • TRACKER_OAUTH_TOKEN: OAuth token of the Tracker account.

      • CH_HOST: Host name.

      • CH_DB: Database name.

      • CH_USER: Username.

      • CH_PASSWORD: Password.

      • CH_ISSUES_TABLE: tracker_issues.

      • CH_CHANGELOG_TABLE: tracker_changelog.

      • TRACKER_INITIAL_HISTORY_DEPTH: 1d.

      • CH_STATUSES_VIEW: v_tracker_statuses.

  12. Click Save changes.
  13. In the Testing tab, click Run test.
  14. The test result is a data import log:
    {
        "statusCode": 200,
        "headers": {
        "Content-Type": "text/plain"
        },
        "isBase64Encoded": false,
        "body": "OK"
    }
    
  15. Create a trigger to regularly export new data to the DB:
    1. Open the Cloud Functions section.
    2. Click → Create trigger.
    3. Set the trigger type to Timer.
    4. In the Cron expression field, select Every day.
    5. Under Function settings, click Create.
    6. Enter the account name. By default, the account is assigned the functions.functionInvoker role to work with the trigger.
    7. Click Create.
    8. Click Create trigger.

Create a connection in DataLensCreate a connection in DataLens

  1. Open the Managed Service for ClickHouse® cluster.

  2. On the left side of the window, select DataLens.

  3. Click Create connection.

  4. Specify the connection settings:

    • Connection: Select in folder.

    • Cluster: Cluster specified when creating the database.

    • Hostname: Host specified when creating the database.

    • HTTP interface port: 8443.

    • Username: Username specified when creating the database.

    • Password: Password specified when creating the database.

    • Cache TTL in seconds: Default.

    • Raw SQL level: Forbid.

    • HTTPS: Enabled.

      Connection settings

  5. Click Create connection.

Create a datasetCreate a dataset

  1. Go to the connections page.
  2. Select a connection.
  3. In the top-right corner, click Create dataset.
  4. Drag one or more tables to the workspace:
    • db1.v_tracker_issues: Current (most recent) issue cross-section.
    • db1.v_tracker_changelog: Issue parameter change history.
    • Db1.v_tracker_statuses: Status transition time based on the issue change history.
  5. Click Save.

Create a chartCreate a chart

  1. Go to the DataLens home page.

  2. Click Create chart.

  3. In the top-left corner, click Select dataset.

  4. In the Datasets drop-down list, select the dataset you created in the previous step.

  5. On the top panel, select a visualization type. By default, the Column chart type is selected.

Create a dashboard and add charts to itCreate a dashboard and add charts to it

  1. On the Yandex DataLens home page, click Create dashboard.

  2. At the top of the dashboard page, click Add→ Chart.

  3. Fill in the widget parameters. Pay close attention to the following fields:

    • Name: Sets the name of the widget. It is displayed at the top of the widget.
    • Chart: Sets the widget to add.
    • Description: Sets the description of the widget. It is displayed at the bottom of the widget.
    • Auto height: Sets the automatic height for Table and Markdown widgets. If this parameter is disabled, you can set the height of the widget on the page using the mouse.
  4. Click Add. The widget will be displayed on the dashboard.

  5. Save the dashboard:

    1. In the top-right corner of the dashboard, click Save.
    2. Enter a name for the dashboard and click Create.

    For more information about setting up dashboards, see Yandex DataLens dashboard.

Sample dashboard based on data from the v_tracker_issues table

Sample dashboard based on data from the v_tracker_issues table

Sample dashboard based on data from the db1.v_tracker_statuses table

Sample dashboard based on data from the db1.v_tracker_statuses table

How to delete the resources you createdHow to delete the resources you created

To stop paying for the resources you created:

  • Delete the ClickHouse® cluster.
  • Delete the Cloud Functions function.

ClickHouse® is a registered trademark of ClickHouse, Inc.

Was the article helpful?

Previous
Loading data from Yandex Metrica to a ClickHouse® data mart
Next
Retail chain's dashboard based on a ClickHouse® DB
Yandex project
© 2025 Yandex.Cloud LLC