All Products
Search
Document Center

Time Series Database:Store data generated by IoT devices in TSDB

Last Updated:Feb 01, 2023

Time Series Database (TSDB) can be used together with IoT Platform to provide a classic IoT solution. This topic describes how to use TSDB together with IoT Platform to provide an intelligent and integrated platform for you to develop and manage IoT devices. In this platform, data collected by IoT Platform is stored in TSDB for further processing. This platform also helps you collect, report, store, and analyze data.

Architecture

The following architecture shows how TSDB works together with IoT Platform.

  • IoT Hub is used to connect and manage IoT devices.

  • Data generated by IoT devices is routed to TSDB by using a rules engine.

  • Data stored in TSDB is used by your business to perform data analysis, data monitoring, and big data analytics.

Use the rules engine of IoT Platform

IoT devices communicate with each other based on message topics. IoT Platform uses a rules engine to process message topic data and forwards the data to TSDB. You can configure simple rules in the rules engine to store data generated by IoT devices to the specified resources. This way, you can implement a full-stack solution to collect, calculate, and store data.

Configure the rules engine to forward data to TSDB

You can configure the rules engine in the IoT Platform console to forward data from IoT Platform to TSDB instances.

Note:

  • Only data collected by the IoT Hub in the China (Shanghai) region can be forwarded to TSDB.

  • Only TSDB instances that use VPCs are supported.

  • The IoT Hub and the TSDB instance must be in the same region. For example, data collected by the IoT Hub in the China (Shanghai) region can be forwarded only to TSDB instances in the China (Shanghai) region.

  • Only data in the JSON format can be forwarded.