Skip to content

My Telegraf/InfluxDB/Grafana configuration for slurping up data from MQTT.

License

Notifications You must be signed in to change notification settings

VirtualWolf/influxdb-firehose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

influxdb-firehose

This repository houses the configuration for the InfluxDB + Grafana + Telegraf setup I have running to pull temperature and humidity data from esp32-sensor-reader-mqtt, air quality data from esp32-air-quality-reader-mqtt, and power usage data from powerwall-to-pvoutput-uploader.

Configuration

  1. Create a .env file at the root of this repository with the following contents (the INFLUXDB_TOKEN and INFLUXDB_ORG values will be filled out after InfluxDB has been started up for the first time):
MQTT_BROKER_ADDRESS=tcp://<your-broker-address>:1883
INFLUXDB_TOKEN=""
INFLUXDB_ORG=""
  1. Run docker compose up to bring all the containers up.
  2. Load the InfluxDB UI at localhost:8086 and create a new user, organisation, and three buckets: weather, power, and air-quality, plus a read/write token for the bucket.
  3. Set the token and organisation name in the .env file from Step 1 then restart the Telegraf container with docker compose restart telegraf.
  4. Log in to the Grafana UI at localhost:3000 with the default admin/admin username and password.
  5. Add a new data source for InfluxDB, set the Query Language to "Flux", and the organisation, token, and default bucket to use.
  6. Optionally import the dashboard.

About

My Telegraf/InfluxDB/Grafana configuration for slurping up data from MQTT.

Topics

Resources

License

Stars

Watchers

Forks