https://github.com/elgohr/mqtt-to-influxdb
Bridge to write MQTT to InfluxDB
https://github.com/elgohr/mqtt-to-influxdb
bridge influxdb mqtt
Last synced: 4 months ago
JSON representation
Bridge to write MQTT to InfluxDB
- Host: GitHub
- URL: https://github.com/elgohr/mqtt-to-influxdb
- Owner: elgohr
- License: mit
- Created: 2020-10-31T16:30:53.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T01:02:35.000Z (4 months ago)
- Last Synced: 2025-03-13T02:19:31.627Z (4 months ago)
- Topics: bridge, influxdb, mqtt
- Language: Go
- Homepage:
- Size: 46.5 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mqtt-to-influxdb
Bridge to write MQTT to InfluxDB.
## Install
Please have a look at the binaries in https://github.com/elgohr/mqtt-to-influxdb/releases
## Usage
### Mandatory Configuration
| Environment Variable | Description |
|----------------------|---------------------------------------|
| MQTT_NAME | Name that the bridge will use on mqtt |
| MQTT_URL | MQTT Broker URL |
| MQTT_USERNAME | Username for authentication |
| MQTT_PASSWORD | Password for authentication || Environment Variable | InfluxDb < 2.0 | InfluxDb 2.0 |
|----------------------|-------------------------|--------------------------|
| INFLUX_URL | Url to the InfluxDB | Url to the InfluxDB |
| INFLUX_TOKEN | use "username:password" | Token for authentication |
| INFLUX_ORGANIZATION | leave empty | Organization to use |
| INFLUX_BUCKET | use database name | Bucket to use |### Optional
| Environment Variable | Description |
|-----------------------|-------------------------------------------------------------------------|
| INFLUX_RETRY_INTERVAL | Retry interval for writing to InfluxDB in Milliseconds (max 4294967295) |
| INFLUX_MAX_RETRIES | Numbers of retries for writing to InfluxDB |
| INFLUX_BATCH_SIZE | Number of points send in a single request to InfluxDB |