MQTT¶
- Why and When to Use MQTT Topics Beginning with $
- Also explains topics and wildcards
Message broker¶
Moquitto¶
- Website
- Mosquitto docs
- Recommende by zigbee2mqtt
Config¶
Generate password file:
podman run --rm -it -v /tmp:/tmp docker.io/eclipse-mosquitto mosquitto_passwd -c /tmp/auth.conf mqtt
Bridges¶
Zigbee2MQTT¶
mqtt-exporter¶
- GitHub
- Chart in charts/mqtt-exporter/
- Published chart: geek-cookbook/mqtt-exporter helm chart
- Container images
MQTT_TOPICandMQTT_IGNORED_TOPICSexample- Downside: The
Metrics conversion example
shows that different label values of the same MQTT payload are converted into individual Prometheus metrics. This not
great for certain situations (i.e. where you need
latitudeandlongitudetogether for a Grafana GeoMap) - Issues
mqtt2prometheus¶
- GitHub
- MQTT to Prometheus gateway
- Stale: Last release 2023-01
Cli¶
Install:
Test the server:
See all topics: Subscribe to #:
TUI¶
- mqttui
- "Subscribe to a MQTT Topic or publish something quickly from the terminal"
Example: