/raspberry_docker-tig-openwrt

TIG stack on Raspberry Pi using docker

Primary LanguageShell

Project status: Functional - Testing in progress

docker-tig-openwrt

TIG stack (telegraf, influxdb, grafana) on Raspberry Pi using docker with some tweaks to collect stats from a router running openwrt.

Docker will set up the databases and dashboard "LEDE Router": https://grafana.com/grafana/dashboards/3484

Based in ratio91's docker-tig repository.

prerequisites

make sure docker runs on your Raspberry Pi and the router sends collectd data to the influxdb server through port 25826. Also ensure types.db from your router matches influxdn/collectd/RouterTypes.db before launching the docker container (This may not be necessary but its strongly encouraged)

(For a new raspberry Pi flash SD card and install hypriot on your raspberry pi first: http://blog.hypriot.com/post/releasing-HypriotOS-1-8/)

installation

  1. Update the ./grafana/provisioning/datasources/datasources.yml data source hosts to your own configuration (Usually the host name of the docker host machine). In my case, my raspberry pi hostname is "myst".
  2. copy the repo to your home dir
  3. cd to docker-tig folder
  4. run docker-compose up (add -d for detached mode)

use

you can access grafana under http://DeviceIP:3000

enjoy.

Recognitions This repository is a fork from ratio91's one github.com/ratio91/docker-tig