Skip to content

youcann/mqttTelegrafInfluxGrafana-dockerCompose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqttTelegrafInfluxGrafana-dockerCompose

Demo of docker-compose and Grafana provisioning.

.
├── docker-compose.yml
├── generateSampleData.sh
├── grafana
│   ├── dashboards
│   │   └── mydashboard.json
│   └── provisioning
│       ├── dashboards
│       │   └── dashboard.yml
│       ├── datasources
│       │   └── datasource.yml
│       └── notifiers
├── influxdb
├── run.sh
└── telegraf
    └── telegraf.conf

Functionality

This project allows collecting data from (IOT-) sensors via MQTT and displaying it with Grafana.

One main goal was to reduce the need for manual installation of packages and the configuring of the back end and the Dashboard to a minimum. By using docker-compose and Grafana provisioning, a first working solution is achieved by running a single command.

In more detail:

  • eclipse-mosquitto provides a MQTT broker to accept messages.

  • Telegraf together with the mqtt_consumer plugin is used to gather incomming MQTT messages and relaying them to influxdb.

  • Influxdb is used to store the data as time series.

  • Grafana is used to display the data.

Prerequisites

Docker and Docker-compose should be installed on your system.

Running

Run

chmod +x run.sh
./run.sh

or run

docker-compose up -d

to run it in the background.

Then open localhost:3000 in your browser.

Testing

Run

./generateSampleData.sh

and watch the graphs in the default dashboard to fill with data.

About

Demo of docker-compose and grafana provisioning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages