Skip to content

This repo will setup graphite and grafana (configured to talk to each other) instances using docker-compose, so an end-user can experiment and learn Grafana/Graphite.

Notifications You must be signed in to change notification settings

Virajdatt/Graphite_Grafana

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graphite_Grafana

This repo will setup a graphite and grafana (configured to talk to each other) instance using docker compose, so an end user can expirement and learn Grafana/Graphite.

I had built this to learn graphite and grafana on my local machine after finding out that back in the day (when I was learning graphite and grafana 2019's), there was no open-source implementation of containerized graphite and grafana which were connected to each other.

This repo tries to help an end user to start learning about graphite and grafana without the hassle of trying to setup these instances (on vm's/locally). There also is no need to connect these instances and worry about the networking shenanigans.

The Pre-requiste for to use the repo is you should have docker and docker-compose installed on your local machine.

How to use the above code.

2 cd Graphite_Grafana

3 make create_volumes

4 make dbuild

Wait for the command here to build the docker image and spin up the container. The time taken here is based on your network speed.

5 Then open a browser and hit the link http://localhost:3000, it should open the grafana link, login using default creds

  • usename:- admin
  • password:- admin

What this Repo does.

  1. It creates a few folders in your home directory to use as docker volumes and also copies a few grafana related files.
  2. It pulls down a graphite image.
  3. It builds a grafana image and adds the configs from the volumes to talk to the graphite built.
  4. Creates and destorys a python container that adds some dummy data into your graphite that you can vizualize using Grafana later on.

How to vizualize the dummy data (mentioned in the step 4 above).

  1. Frome home directory click on New Dashboard

  1. Next click on the Add-Query

  1. From there on in Query select the Local_Graphite

  1. Continue selecting fields as shown below

Now go ahead and have fun and your graphite link will be on http://localhost

About

This repo will setup graphite and grafana (configured to talk to each other) instances using docker-compose, so an end-user can experiment and learn Grafana/Graphite.

Topics

Resources

Stars

Watchers

Forks