Configuration for Grafana

Grafana logo

With Grafana and InfluxDB you can log data from the Gataway and make beautiful graphs and nice dashboards.

The Gateway communicates via MQTT and publishes and listens to a number of topics. You can integrate this into InfluxDB with Telegraf.

See the topic on the Grafana example [1] for a simple configuration example.

Grafana example

You need to add the following in the Telegraf config:

Topics = [

And tell it that data is set to json;

Data_format = “json”

MQTT structure

See Proddy’s EMS-ESP Wiki [2] for all the details on MQTT.

Rest API and Prometheus

Another way to make Grafana dashboards is with Promotheus and API calls instead of MQTT. See the other article HERE.