https://github.com/truebrain/mqtt_to_influx
Sometimes you just want to bridge MQTT to InfluxDB2
https://github.com/truebrain/mqtt_to_influx
Last synced: 7 months ago
JSON representation
Sometimes you just want to bridge MQTT to InfluxDB2
- Host: GitHub
- URL: https://github.com/truebrain/mqtt_to_influx
- Owner: TrueBrain
- License: mit
- Created: 2022-08-05T09:34:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-07T12:44:48.000Z (almost 4 years ago)
- Last Synced: 2025-01-04T17:14:11.811Z (over 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MQTT to Influx
Sometimes you just want to bridge MQTT to InfluxDB2, without going through the complex configuration that is `telegraf`.
Additionally, this logs all MQTT messages to a log-file.
This last part is really important, if a bug is found in the parsing.
It allows replaying of the data, to correct any analysis error this component might have made.
## Installation
## Configuration
The `--help` shows all the possible commands. In short:
```
Usage: python -m mqtt_to_influx [OPTIONS]
Options:
--log-folder DIRECTORY Folder to log the raw requests in
--mqtt-url TEXT URL of the MQTT broker [required]
--mqtt-subscribe-topic TEXT Topic to subscribe to on the MQTT broker
[required]
--influxdb-url TEXT URL of the InfluxDB server [required]
--influxdb-token TEXT Token to access the InfluxDB server [required]
--influxdb-org TEXT Organisation of the InfluxDB server [required]
--influxdb-bucket TEXT Bucket to use in the InfluxDB server [default:
metrics]
-h, --help Show this message and exit.
```