This is test project for using Grafana together with InfluxDB all wrapped in Docker containers.
- Check out this repo
- In the same folder as docker-compose.yml:
docker-compose up -d
(if this command fails try first to execute: docker-compose build
)
- Two containers should be up and running. Check this out with:
docker ps -a
- Get ip address of docker machine
docker-machine ip default
- Populate InfluxDB with test data. If your docker ip address is different than one specified in populate.rb, update value in that file.
ruby populate.rb
- Open Grafana in browser:
$ docker-machine ip default
-> 192.168.99.100
$ firefox 192.168.99.100:3000
-
Login with username admin, password admin.
-
Add data source
-
Click Add data source
-
Populate as on the picture below:
- Data-only container madness
- Docker In-depth: Volumes
- Docker Volumes and Networks with Compose
- Docker, Grafana, InfluxDB Tutorial
- Graphana tutorial
Tested on:
Docker version 1.12.0, build 8eab29e
docker-compose version 1.8.0, build f3628c7
docker-py version: 1.9.0
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.2h 3 May 2016
OS X El Capitan 10.11.3