logo

mqtt2otel

mqtt2otel is a powerful yet lightweight bridge between the MQTT messaging protocol—commonly used in the IoT (Internet of Things) context—and OpenTelemetry (Otel) protocol, which is typically used for professional application and infrastructure monitoring. The tool can subscribe to MQTT broker topics, process and enrich messages with additional information, and then generate Otel metrics or logs for further analysis using standard tools.

  • Best of both worlds#

    Combine the power of low energy, light weight IOT communication used at millions of devices worldwide with the de facto industry standard of professional telemetry.

  • Enrich your data#

    You can add additional data to your telemetry signals, name them, add descriptions, locations, manufactorers, capabilities or others.

  • Create dashboards with ease#

    Open telemetry is the de facto standard for telemetry data and is supported by all major dashboard tools.

The standard workflow#

The basic workflow is as following:

flowchart LR
    IoT1(IoT device) -->|Publish| broker(Mqtt broker)
    IoT2(IoT device) -->|Publish| broker
    IoT3(IoT device) -->|Publish| broker
    mqtt2otel(mqtt2otel server) --> |Subscribe| broker
    broker --> |Send| mqtt2otel(mqtt2otel server)
    mqtt2otel -->|send| otel(Open telemetry endpoint<br/>e.g. an otel collector)
    otel -->|retrieve| mqtt2otel
    otel -->|send| dashboard(Dashboard tool)
    dashboard-->|retrieve| otel

Currently mqtt2otel is not shipping an internal mqtt broker or an otel-collector. These tools have to be provided separatly. This may change in future versions.

Background#

To learn more about the underlying technologies, check out the following resources:

Documentation#

Please refer to the official documentation for further info.

Source code#

mqtt2otel is open source. The source code is available on GitHub