Skip to content

Composite docker application for TIG stack (Telegraf, InfluxDb, Grafana) for deployment on Raspberry Pi

License

Notifications You must be signed in to change notification settings

bobtronic/TIG-stack

 
 

Repository files navigation

Docker compose stack for Telegraf, InfluxDb, Grafana with configuration and dashboards for Raspberry Pi

1. What

This github repository describes a composite docker application that can be deployed on an arm device (e.g. a Raspberry Pi 3 Model B+) running Raspian.

1.1 System resource monitoring using the TIG Stack (Telegraf, Influxdb & Grafana)

The system resource monitoring is realized by the TIG stack and happens as follows:

  1. The Telegraf container collects the system resource metrics (memory, CPU, disk, network, ...) of the raspberry pi device and sends them to
  2. the Influxdb container that will store them in the influx database.
  3. The Grafana container has a dashboard (see screenshot below) showing these system metrics that it has retrieved from the influxdb.

2 Telegraf

The table below specifies the environment variables that can be set in the Balena Device Service Variables panel for the Telegraf Service. Note that the Default Value is defined in docker-compose.yml

Name Default Value Description
interval 60s Frequency at which metrics are collected
flush_interval 60s Flushing interval (should not set < interval)

3. Grafana

The Grafana user interface can be accessed at port 3000 of the host OS. The login and password is admin. The name of the dashboard is system metrics.

Here below a screenshot of the system metrics dashboard that is also provisioned by this application ( file is grafana\dashboards\system metrics.json)

system metrics example top part system metrics example bottom part

Credits

  1. Forked from https://github.com/janvda/balena-node-red-mqtt-nginx-TIG-stack
  2. Initializing Grafana with preconfigured dashboards (github repository)
  3. InfluxDB system metrics dashboard
  4. Grafana Series Part 1: Setting up InfluxDB, Grafana and Telegraf with Docker on Linux

About

Composite docker application for TIG stack (Telegraf, InfluxDb, Grafana) for deployment on Raspberry Pi

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.8%
  • Dockerfile 9.9%
  • Shell 2.3%