Scale device connectivity
Connect MQTT devices through EMQX and route their telemetry to your database. Size each part of the pipeline for your connection count and data volume.
EMQX TSDB INTEGRATION
Collect MQTT telemetry with EMQX, prepare it with SQL rules, and store it in your database for analytics and visualization.
Overview
Keep device connectivity and data preparation in EMQX, so your database can focus on storage and queries.
Connect MQTT devices through EMQX and route their telemetry to your database. Size each part of the pipeline for your connection count and data volume.
Filter and transform telemetry before storage, so your database processes the data your applications need.
Route telemetry to supported databases through EMQX integrations, so you can evolve your storage layer independently of device connectivity.
Architecture
MQTT devices publish to EMQX, which prepares telemetry and writes it to configured database sinks.
MQTT devices
EMQX Enterprise
MQTT Broker
Broker monitoring
PrometheusDatabase sinks
How it works
Configure a pipeline in the Flow Designer, from MQTT topics to database writes.
Before you start
Connect sensors and other devices to EMQX and publish telemetry to MQTT topics.
Filter messages and map timestamps, measurements, and field types with SQL rules.
Write a test message through your database sink. Check its timestamp, field types, and stored values.
Capabilities
Connect devices, transform MQTT data, and monitor delivery to your database.
Connect devices using MQTT 5.0 or 3.1.1, with protocol support independent of your database choice.
MQTT protocol guideHandle temporary interruptions with supported buffering and retry options. Set buffer mode, capacity, and request expiry for your workload.
Buffer queue guideFilter messages, extract measurements, and transform field values with built-in SQL rules before writing to your database.
Rule SQL referenceChoose synchronous or asynchronous requests where supported, and tune write settings for your throughput and latency needs.
Sink features guideStore prepared telemetry in your database for queries, dashboards, and analysis with your existing tools.
TimescaleDB integration guideTrack successful, failed, and dropped requests, along with queue depth, to identify delivery issues.
Delivery monitoring guideEcosystem
Connect MQTT telemetry to your storage platform, and monitor EMQX with Prometheus.
Resources
FAQ
EMQX handles device connections and prepares telemetry before storage. SQL rules can filter messages and transform fields, while database integrations write the results to supported destinations.
EMQX supports integrations with InfluxDB, TimescaleDB, Apache IoTDB, ClickHouse, GreptimeDB, and other databases. Check each guide for supported versions and configuration. Prometheus collects EMQX broker metrics for monitoring.
Supported database sinks can buffer requests and retry delivery during temporary interruptions. Retention depends on the connector, buffer mode and capacity, and request expiry (TTL). Monitor failed and dropped requests; buffering does not provide unlimited retention.
Yes. Use SQL rules to filter messages, select timestamps and measurements, and transform field values before writing to the database. Match the output fields and types to its schema.
Choose the connector for your database and check supported versions, credentials, and write formats in its guide. Configure a rule and database sink, then verify timestamps and measurements in the destination.
Plan your database integration, data preparation, and deployment with an EMQX expert.