Skip to main content

OpenTSDB

info

OpenTSDB ingestion reads raw Metric points through the source query service. Select only one confirmed Metric initially; leaving it empty expands the scope to all sources. For verification, compare millisecond instants, values, and tags in the same window. Downsampled or aggregated point counts do not replace source row counts.

Entry point: taosExplorer → Data In → OpenTSDB.

The actual reading host is taosX or the selected taosX-Agent and must access the source query service.

This page primarily uses the graphical interface to complete tasks. For direct DSN configuration, see OpenTSDB Read Parameters for exact read-range and target-naming keys, alias precedence, and default behavior. UI labels do not imply same-named DSN parameters.

1. Prerequisites​

Ask the source administrator for the query address, access conditions, one Metric, its tag set, and a short time window known to contain data. An authorized TDengine TSDB administrator creates the following in taosExplorer's Data Browser or the taos CLI:

CREATE DATABASE opentsdb_demo PRECISION 'ms';
PrerequisiteHow to confirm
Reading location and networkThe actual taosX or taosX-Agent host can access the source query service's HTTP/HTTPS address and actual port, commonly 4242. This is not a check of internal HBase ports.
Source access conditionsConfirm that listing and raw-point queries work. If reverse-proxy authentication or network allowlists exist, have the source administrator confirm entry-point compatibility. Unauthenticated examples are not security requirements.
Plugin and runtime dependenciesThe actual reading host has an OpenTSDB plugin and runtime environment matching the taosX version.
Verification samplesSupply one Metric, an explicit tag set, millisecond times, and values. Source verification cannot consist only of aggregated curves.

2. Configure and Start​

  1. Add an OpenTSDB data source, select opentsdb_demo and an agent, enter the actual service address, and check connectivity.
  2. Click Get Metrics and select only one confirmed test Metric. No selection can expand to all sources and is unsuitable for initial verification.
  3. Set explicit start/end times and the page time zone. Use a small per-read time window based on source data density, and set delay according to source lateness.
  4. Submit and start. Retain the task name and time range, and observe errors and progress.

2.1 Check Connection and Confirm Scope​

Under Connection Configuration, select HTTP or HTTPS first, then enter the server address and port separately. The displayed 127.0.0.1 and 4242 are format hints, not a correct configured address. 127.0.0.1 works only when the source query service and actual collection process share the same network environment.

OpenTSDB connection protocol, server address, and port

Click Check Connectivity and wait for this result before proceeding to task configuration:

ResultAction
Data source available and source version displayedRecord the returned version and continue to get Metrics. This does not prove that the selected window contains data, source query capacity is sufficient, or target writes have occurred.
Connection refusedCheck address, port, and source service listener from the actual collection host. This is a rejected connection, not proof of an incorrect password. Ask the source administrator to check the service; enlarging read windows does not fix it.
Connection timeout, TLS, or HTTP errorCheck network segments, certificates, and source access restrictions separately. Save the error and occurrence time. TCP reachability does not replace HTTP query verification.

Then click Get Metrics, wait for the list to load, and select the administrator-confirmed test item. If the list is empty or retrieval fails, do not skip the check by leaving Metrics empty and submitting directly; that expands collection scope.

2.2 Fields and Units​

The following image shows only time and field settings: page time zone Asia/Shanghai, start/end range 2026-11-20 08:00:00 to 08:01:00, 1 minute per read, and 10 seconds delay. Timestamp and value fields are not renamed. Metrics remain unselected, so do not submit in this state. After connecting to a real source and retrieving the list, select one confirmed Metric, then use a window known to contain source data.

OpenTSDB one-minute window with Metric awaiting selection and default time/value fields

UI itemConfiguration
Connection protocol, address, portEnter the actual query service; select HTTP/HTTPS according to deployment. TCP reachability does not establish query permissions.
MetricsClick Get Metrics and select actual Metrics; multiple selections are allowed. No selection means reading all. Do not leave empty initially.
Start and end timesStart is required; enter in the page time zone. No end means continuous reads. Set an explicit end for the first test.
Time range per readIn minutes; UI range 1–6000, initial value 60. Reduce it first for dense source points. This is neither a polling interval nor a number of seconds. Excessive ranges can increase query duration and memory use.
DelayIn seconds; UI range 1–30, initial value 10. Accommodates late records but does not guarantee capture of every later change to old time points.
Rename timestamp/value fieldsIf empty, uses timestamp and value respectively. Set according to target model needs and use actual generated fields during verification.
Child table name expressionControls target naming, not source Metric filtering. Retain the default initially and record actual table names. Avoid mapping multiple series to the same child table and time primary key.

If the list is empty, have the source administrator confirm Metric enumeration requests and object permissions. Do not clear selections to bypass the issue. For advanced concurrency and batches, see Tuning and Resource Control. Confirm one window and one series before expanding scope.

2.3 Advanced Options and Submission​

OpenTSDB new-task concurrency, batch, log, and health options

The current new-task form initially sets read concurrency to 50, write concurrency to 50, batch size to 5000, write queue length to 1000, and log level to info. These are initial values for this entry point, not universal defaults for every connector or standalone plugin configuration. If the source is load-sensitive, first agree on lower concurrency with the source administrator. Adjust one setting at a time and record changes. Do not increase concurrency and time windows together.

Use a positive integer for read concurrency. Same-named batch, write concurrency, and batch delay keys in a direct source DSN do not control plugin output and cannot establish throttling. For effective options and zero-value restrictions, see OpenTSDB Advanced Parameters.

Health monitoring and write error thresholds only help detect task problems; they do not replace source/target comparison. Retain the original configuration first, change only one effective setting at a time, and observe actual reads, output, and target samples in the same window. Restore previous values if results worsen. For actual metric and log viewing steps, see Logs and Performance.

tip

Click Submit to return to the task list and check whether the actual task started. If not, start the original task using Daily Operations. Record the task ID, Metric, time range, target database, and execution host before data verification. Successful creation or a running status does not replace result checks.

3. Verification​

Run SHOW opentsdb_demo.STABLES; and SHOW opentsdb_demo.TABLES; in taosExplorer's Data Browser or the taos CLI, and record actual generated objects. Query the child table corresponding to the source Metric and tag set, comparing millisecond instants, values, and tags in the same window. Use the same raw-data basis for source queries as for migration. Do not directly treat downsampled or aggregated point counts as target row counts.

4. Troubleshooting​

SymptomChecks
Connectivity failsCheck the source query service address, port, and access restrictions from the reading host.
No Metrics or recordsCheck list-retrieval permissions, selected Metrics, actual tags, and time range.
Incorrect point counts or timesCheck time zone, millisecond units, source aggregation/downsampling, and target primary keys.
Slow queries or high source loadReduce the time range per read and observe source query duration first.

For other task, write, and runtime issues, see Troubleshooting by Symptom.

5. Stop, Resume, and Limitations​

Stop the original task and retain configuration and progress. After resuming, recheck the interrupted window. Query windows and delay cannot cover indefinitely late historical data. Verify Metric selection and continuous mode on a small scope before expanding. Stopping a task does not delete source data or authorize clearing execution state needed for recovery.

When resuming, retain the original task's Metric scope and target naming, and check known data before and after interruption first. mode accepting strings does not imply an additional resume guarantee. Do not manually change breakpoints to skip backlogs. If progress repair is needed, save original state and confirm with technical support first. Do not set aliases for the complete time fields simultaneously, to avoid an empty value masking another valid value.