Skip to main content

General

Export to TDengine

High-performance export to TDengine using WebSocket, auto-creation of Super Tables, and efficient batching.

High-performance export to TDengine, the next-generation time-series database optimized for IoT and Industrial applications. This connector uses the WebSocket protocol and automatically manages Super Tables (STABLE) and child tables per device.

open_in_new

Official Documentation

tdengine.com

Configuration Parameters

ParameterRequiredTypeDefaultDescription
HostNostringlocalhostTDengine server hostname or IP.
PortNoint6041WebSocket port (default is 6041).
UsernameNostringrootDatabase username.
PasswordNostringtaosdataDatabase password.
DatabaseNostringproxusTarget database name.
StableNameNostringdevice_dataName of the Super Table to create/use.
KeepNoint365Data retention period in days.
DurationNoint10Duration of each data file in days.
BufferNoint256Write buffer size in MB.

Internal Behavior

Schema Management

  • Super Tables: Creates a Super Table with columns ts, numeric_value, string_value and tags tagname, devicename, deviceid.
  • Child Tables: Creates a child table per {StableName}_{DeviceName}_{DeviceId}_{Metric} (metric name is sanitized).
  • WebSocket Protocol: Uses the lightweight WebSocket connector for low-latency writes.

Performance Features

  • Batching: Payloads are processed in chunks of 1000 records.
  • Retry Policy: Built-in retry mechanism (3 attempts) for transient network failures.
  • Timestamp: Inserts use DateTime.UtcNow for ts by default.