Skip to main content

12.2 Data In

Data In manages the ingestion of time-series data from external sources into TDengine TSDB. It is accessed from Admin Console → Data In.

The Data In page lists all TDengine connections. Click a connection to manage its ingestion tasks, agents, and data collection agent configurations.

12.2.1 Data In Tasks

The Data In Task tab lists all configured ingestion tasks for a connection, with columns: ID, Name, Type, Target, Create At, Agent, Metrics, and Status.

The toolbar provides controls to start, stop, delete, import, and export tasks, as well as a refresh button and settings.

Creating a Task

Click + to create a new task. Configure the following sections:

General Information

FieldDescription
Name (required)A descriptive name for the task
TypeThe data source protocol (see task types below)
Target (required)The destination TDengine database. Click + Create Database to create a new one.

Connection Configuration

Configuration fields vary by task type. Two common examples are shown below.

Example: OPC-UA

OPC-UA (OPC Unified Architecture) is a widely used industrial protocol for connecting PLCs, sensors, and SCADA systems.

Connection Configuration

FieldDescription
Server Endpoint (required)OPC-UA server address, e.g., 127.0.0.1:6666/OPCUA/ServerPath
Failover Server EndpointsBackup server endpoints for high availability
Security ModeOPC-UA security mode (None, Sign, SignAndEncrypt)
Security PolicyEncryption policy to use
Secure Channel CertificateCertificate file for secure channel
Certificate's Private KeyPrivate key file for the certificate
Connect TimeoutConnection timeout in seconds (default: 10)
Request TimeoutRequest timeout in seconds (default: 10)

Authentication

Choose Anonymous, Username (username and password), or Certificates (client certificate files).

Click Check Connection to verify before proceeding.

Data Sets

FieldDescription
Root node IDStarting node for data point discovery, e.g., ns=1;i=1001
NamespacesOPC-UA namespaces to include (populated after connection check)
Node ClassType of OPC-UA nodes to collect (default: all)
Point ID Regex PatternFilter data points by node ID pattern
Point Name Regex PatternFilter data points by name pattern
Super Table Name (required)Target supertable name template (default: opc_{type})
Value Column NameColumn name for the value (default: val)
TimestampTimestamp source (default: original_ts)

Collect

FieldDescription
Collect Modesubscribe (push) or poll (pull)
Point Update ModeHow point metadata updates are handled
Point Update IntervalInterval in seconds to check for point changes (default: 600)

Example: SparkplugB (MQTT)

SparkplugB is an MQTT-based protocol widely used in IIoT deployments.

Connection Configuration

FieldDescription
Brokers (required)MQTT broker address(es), e.g., mqtt://host:1883
MQTT Protocol VersionMQTT version to use
Client IDMQTT client identifier
Keep AliveKeep-alive interval in seconds
UsernameMQTT username
PasswordMQTT password
TLS VerificationEnable TLS for the MQTT connection
Group IDSparkplug group ID to subscribe to
Node Device ListList of Sparkplug node/device IDs to collect
Message TypeSparkplug message types to process

An Advanced Options section is available for all task types for further tuning.

Click Submit to create the task.

note

The Data In feature is powered by TDengine TSDB's data ingestion engine. For complete documentation of all task types and their configuration fields, refer to the TDengine TSDB documentation.

Supported Task Types

IDMP supports ingesting data from the following source types:

TypeDescription
TDengine Data SubscriptionSubscribe to TDengine TMQ topics for real-time data ingestion
TDengine QueryPull data from TDengine via SQL queries on a schedule
PIOSIsoft PI System
PI BackfillHistorical backfill from OSIsoft PI
OPC-UAOPC Unified Architecture
OPC-DAOPC Data Access
InfluxDBInfluxDB time-series database
OpenTSDBOpenTSDB time-series database
PostgreSQLPostgreSQL relational database
OracleOracle database
Microsoft SQL ServerMicrosoft SQL Server
MongoDBMongoDB document database
SparkplugBMQTT Sparkplug B protocol
KingHistorianKingHistorian industrial historian
PulsarApache Pulsar messaging
Pulsar-TuyaPulsar with Tuya IoT platform integration

12.2.2 Agents

The Agent tab lists the IDMP agent processes registered for this connection, with columns: ID, Name, Created At, and Status. Agents handle task execution for protocols that require an intermediary process.

12.2.3 Data Collection Agents

The Data Collection Agents tab provides configuration guides for third-party agents that can write data directly into TDengine using standard protocols:

AgentDescription
PrometheusConfigure Prometheus remote write to push metrics into TDengine
TelegrafConfigure Telegraf output plugin to write metrics to TDengine
InfluxDB Line ProtocolWrite data using the InfluxDB line protocol wire format
OpenTSDB JSON ProtocolWrite data using the OpenTSDB HTTP JSON API
OpenTSDB Telnet ProtocolWrite data using the OpenTSDB telnet interface

Click any card to view the configuration guide for that agent.