Docker compose stack for Telegraf, InfluxDb, Grafana with configuration and dashboards for Raspberry Pi
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.
The system resource monitoring is realized by the TIG stack and happens as follows:
- The Telegraf container collects the system resource metrics (memory, CPU, disk, network, ...) of the raspberry pi device and sends them to
- the Influxdb container that will store them in the influx database.
- The Grafana container has a dashboard (see screenshot below) showing these system metrics that it has retrieved from the influxdb.
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 ) |
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
)