homework-jianmu/docs/en/06-advanced/05-data-in/10-opentsdb.md

4.9 KiB

title slug
OpenTSDB /advanced-features/data-connectors/opentsdb

import Image from '@theme/IdealImage'; import imgStep01 from '../../assets/opentsdb-01.png'; import imgStep02 from '../../assets/opentsdb-02.png'; import imgStep03 from '../../assets/opentsdb-03.png'; import imgStep04 from '../../assets/opentsdb-04.png'; import imgStep05 from '../../assets/opentsdb-05.png'; import imgStep06 from '../../assets/opentsdb-06.png'; import imgStep07 from '../../assets/opentsdb-07.png'; import imgStep08 from '../../assets/opentsdb-08.png';

This section explains how to create a data migration task through the Explorer interface to migrate data from OpenTSDB to the current TDengine cluster.

Function Overview

OpenTSDB is a real-time monitoring information collection and display platform built on top of the HBase system. TDengine can efficiently read data from OpenTSDB via the OpenTSDB connector and write it into TDengine to achieve historical data migration or real-time data synchronization.

During task execution, progress information is saved to disk, so if the task is paused and restarted, or it recovers automatically from an error, the task will not start from the beginning. More options can be found by reading the descriptions of each form field on the task creation page.

Creating a Task

1. Add a Data Source

Click the +Add Data Source button in the top left of the data writing page to enter the Add Data Source page, as shown below:

2. Configure Basic Information

In the Name field, enter a task name, such as test_opentsdb_01.

Select OpenTSDB from the Type dropdown box, as shown below (the fields on the page will change after selection).

The Agent field is optional. If needed, you can select a specified agent from the dropdown box, or click the +Create New Agent button on the right to create a new agent.

The Target Database is required. Since OpenTSDB stores data with a time precision of milliseconds, you need to select a millisecond-precision database. You can also click the +Create Database button on the right to create a new database.

3. Configure Connection Information

In the Connection Configuration area, fill in the connection information of the source OpenTSDB database, as shown below:

Below the Connection Configuration area, there is a Connectivity Check button. Users can click this button to check whether the information entered above can correctly retrieve data from the source OpenTSDB database. The check results are shown below:
Failure

**Success**

4. Configure Task Information

Metrics: These are the physical quantities stored in the OpenTSDB database. Users can specify multiple metrics to synchronize; if not specified, all data in the database will be synchronized. If users specify metrics, they need to click the Get Metrics button on the right to fetch all metric information from the current source OpenTSDB database and then select from the dropdown box, as shown below:

Start Time: This refers to the start time of the data in the source OpenTSDB database. The time zone of the start time uses the time zone selected in the explorer. This field is required.

End Time: This refers to the end time of the data in the source OpenTSDB database. If the end time is not specified, synchronization of the latest data will continue; if the end time is specified, synchronization will only occur up to that point. The time zone of the end time uses the time zone selected in the explorer. This field is optional.

Time Range per Read (minutes): This defines the maximum time range for a single read from the source OpenTSDB database. This is an important parameter that users need to decide based on server performance and data storage density. If the range is too small, the synchronization task will execute slowly. If the range is too large, it may cause system failures in the OpenTSDB database due to high memory usage.

Delay (seconds): This is an integer between 1 and 30. To eliminate the impact of out-of-order data, TDengine always waits for the time specified here before reading the data.

5. Configure Advanced Options

The Advanced Options section is collapsed by default. Click the > on the right to expand it, as shown below:

6. Completion

Click the Submit button to complete the creation of the OpenTSDB to TDengine data synchronization task. Go back to the Data Sources List page to view the execution status of the task.