Enhanced IoT Dashboards with Golioth, InfluxDB, and Grafana

Originally published at: Enhanced IoT Dashboards with Golioth, InfluxDB, and Grafana - The Golioth Developer Blog

We co-hosted a webinar with InfluxDB demonstrating how Golioth Pipelines make it simple to stream data from a microcontroller with environmental sensors directly into a production InfluxDB database. Using the example of a greenhouse monitor, we showed how to collect temperature and humidity data from sensors, stream it into InfluxDB, and then visualize and set up alerts in Grafana. With Golioth’s Pipelines, what used to be a complex, multi-month project can now be implemented with just a few lines of YAML configuration. Learn more about Pipelines in our docs or check out the Thingy:91 prebuilt binary we used in the webinar to get started immediately. Streaming Data from Golioth to InfluxDB Golioth Pipelines make it straightforward to send data from your IoT devices to InfluxDB. To get started, you can use this pipeline example for InfluxDB with CBOR. filter: path: “*” content_type: application/cbor steps: - name: step-0 transformer: type: cbor-to-json version: v1 destination: type: influxdb version: v1 parameters: url: <https://us-east-1-1.aws.cloud2.influxdata.com> token: $INFLUXDB_TOKEN bucket: device_data measurement: sensor You’ll need to enter your InfluxDB URL, along with the url of your InfluxDB instance and API key in the YAML configuration. This setup allows you to instantly stream your device data securely and efficiently into InfluxDB. Visualizing IoT Data in Grafana After streaming data into InfluxDB, the next step is to visualize and act on it. Here’s how we set it up in the webinar: Connect Grafana to InfluxDB: Open Grafana and navigate to Configuration > Data Sources. Add a new data source and select InfluxDB. Choose “Flux” as your query language. Enter your InfluxDB instance URL, organization, bucket, and authentication token details. Save and test your new data source Create Charts with…