RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • StreamSQL
  • AI Agent Framework
  • TPCLAW Agent Platform (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • StreamSQL
  • AI Agent Framework
  • TPCLAW Agent Platform (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

  • Extension Components

    • Extension Components Overview
    • filter

    • action

    • transform

    • external

    • ai

    • ci

    • IoT

      • IoT Components Overview
      • Input Endpoints

      • Protocol Acquisition

      • Time-Series Database

        • TSDB Write Node
        • TSDB Query Node
          • Configuration
          • Supported drivers
          • Output (msg.Data)
      • 控制

      • IoT Scenarios
    • Stream Processing

    • Service Discovery

    • file

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • Agent Framework

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

  • StreamSQL

目录

TSDB Query Node

x/tsdbQuery: Universal time-series database query node, delegates by driver.

Requires the extension library: rulego-components-iot (opens new window)

# Configuration

Field Type Description Default
driver string TSDB driver: opengemini/influxdb/tdengine/timescaledb required
(other fields) — Passed through to the delegated TSDB query node (connection and query fields, see table below) —

# Supported drivers

driver Delegate node Query language Connection Query field
opengemini x/opengeminiQuery SQL server/username/password/database command
influxdb x/influxdbQuery Flux url/token/org/bucket query
tdengine x/tdengineQuery SQL dsn (REST: root:taosdata@http(host:6041)/) /db query
timescaledb x/timescaledbQuery SQL (PostgreSQL) dsn/db query

promremote is write-only (no query support). Connection fields are the same as the corresponding write nodes, see x/tsdbWrite.

# Output (msg.Data)

Results from all drivers are normalized into a columns+rows QueryResult JSON and routed to Success; query errors are routed to Failure:

{
  "Columns": ["time", "device_id", "temp"],
  "Rows": [
    {"time": "2026-07-29T10:00:00Z", "device_id": "d1", "temp": 25.3}
  ]
}
1
2
3
4
5
6

Column names follow each backend's native dialect (e.g. InfluxDB Flux returns _time/_value/_field built-in columns). Query statements are written in the selected backend's native language and support ${msg.xx}/${metadata.xx} templates.

Edit this page on GitHub (opens new window)
Last Updated: 2026/07/29, 08:03:51
TSDB Write Node
Control Timer

← TSDB Write Node Control Timer→

Theme by Vdoing | Copyright © 2023-2026 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式