Presentation given at Golang Melbourne, July 4th 2017
The steps below assume Docker for Mac/Windows or via Linux, meaning exposed ports are accessible at http://localhost:<port>
. If you're using Docker via Virtualbox/Vagrant/other, please substitute localhost
for your IP.
-
Clone the repo
-
Run
docker-compose up
. This will bring up:
- Mosquitto (MQTT broker)
- InfluxDB (time series database)
- Grafana
- mqti
- MQTT temperature generator
- MQTT geo generator
- The following UI's are now available:
-
Access the Grafana UI, logging in as
admin
/admin
-
Add a new data source with the following detail:
- Name: influxdb-iot
- Type: InfluxDB
- HTTP URL: http://influxdb:8086
- HTTP Access: proxy
- InfluxDB Database: iot
-
Click 'Add'
-
Add another new data source with the following detail:
- Name: influxdb-owntracks
- Type: InfluxDB
- HTTP URL: http://influxdb:8086
- HTTP Access: proxy
- InfluxDB Database: owntracks
-
Now, let's import a dashboard
-
Click 'Upload .json File' and select './grafana/IoT-dashboard.json'
-
Leave the name as 'IoT' and select 'influxdb-iot' from the 'Select a InfluxDB data source' drop-down
-
Click 'Import'. Your new IoT dashboard should already be showing data!
-
Now, let's import another dashboard
-
Click 'Upload .json File' and select './grafana/Owntracks-dashboard.json'
-
Leave the name as 'Owntracks' and select 'influxdb-owntracks' from the 'Select a InfluxDB data source' drop-down
-
Click 'Import'. Your new Owntracks dashboard should already be showing data!