Skip to content

videnovnebojsa/grafana-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

This is test project for using Grafana together with InfluxDB all wrapped in Docker containers.

Getting started

  • 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

Add data source

  • Click Add data source

  • Populate as on the picture below:

Add InfluxDB

  • Add new Dashboard. Dashboards -> New

  • Add new Graph to the row Add Panel -> Graph Add new Graph

  • Save Dashboard

Links

Final notes

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

About

InfluxDB, Grafana, Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages