Skip to content

unaguna/exp-grafana-mysql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experiment of Grafana with MySQL

We use Docker to begin experimenting with Grafana with ease.

Prerequisite

Dockers must be available. The following commands can be used to check.

docker --version
docker ps
Docker-Compose --version

Start Up

  1. Create a network for docker containers with the following command:

    docker network create exp-grafana-mysql-network
  2. (Optional) Put file to initialize MySQL on ./DB/. For example, the samples by MySQL are useful.

  3. Build images with the following command:

    Docker-Compose build 
  4. Run containers with the following command:

    Docker-Compose up -d
  5. You can use Grafana at http://127.0.0.1:3000

Caution

  • Grafana data is persistent.
  • MySQL data is NOT persistent and changes are lost when the container is deleted. This is because it is assumed that only SQL for viewing purposes by Grafana will be executed while the container is running.

About

Experiment of Grafana with MySQL

Resources

Stars

Watchers

Forks