daq-tools / kotori

A flexible data historian based on InfluxDB, Grafana, MQTT, and more. Free, open, simple.

Home Page:https://getkotori.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connecting to multiple MQTT brokers

amotl opened this issue · comments

Hi there. People asked about whether it would be possible to connect Kotori to multiple MQTT brokers. /cc @Tonkenfo

Currently, only one MQTT broker can be configured within the main Kotori configuration file 1. However, in theory, the machinery should be capable of handling connections to different MQTT brokers, one per tenant.

Footnotes

  1. https://github.com/daq-tools/kotori/blob/0.26.12/etc/production.ini#L19-L24

In theory, the machinery should be capable of handling connections to different MQTT brokers.

#83 makes it real 1. Just add a corresponding configuration snippet to your per-application settings, for example at /etc/kotori/apps-available/mqttkit.ini, like

[mqttkit-1:mqtt]
; Configure individual MQTT broker for this application.
; The option group prefix within `mqttkit-1:mqtt` must match
; the `realm` attribute of the application settings.
host        = mqtt.example.org
port        = 1883
username    = foobar
password    = secret

Footnotes

  1. In order to get a preview to this feature, run git fetch; git switch multibroker on your working tree.