This repository contains the source code for mqtt2influx
, a utility that helps you store events from a mqtt broker to an influxdb database.
Its main purpose is to read sensor readings coming from a Zigbee2MQTT.
- Only compatible with InfluxDB v1 (for tests, version 1.5.4 is used).
You can either grab the latest release or build it yourself:
$ cargo build --release
Add the binary to your path and you are ready to go!
You can find the docker image at ghcr.io/cquintana92/mqtt2influx:latest
(or :VERSION
instead of :latest
).
An example configuration file can be found at the file mqtt2influx.toml.
The docker image can be configured via env variables too, using a double underscore for indicating sections (ie: influx.server
would be expressed as INFLUX__SERVER
).
Dual-licensed under MIT or the UNLICENSE.