EMQX integrates directly with InfluxDB, allowing IoT telemetry data to flow seamlessly from MQTT devices into a time-series database. This is a common pattern for industrial monitoring, smart building, and IIoT applications.
IoT Sensors → MQTT → EMQX → Rule Engine → InfluxDB → Grafana
↓
(Line Protocol)
Data Flow:
EMQX Rule Engine SQL example:
SELECT
payload.temperature as temperature,
payload.pressure as pressure,
clientid as device_id
FROM
"sensors/+/data"
Then configure InfluxDB action with: