Grafana MySQL cohort analysis demo

This docker image allows you to play around with cohort analysis in Grafana using MySQL.

It shows user retention of imaginary website split by months:

Users retention graph

And amount of money spent, split by user registration month.

Installation

  1. To run this image you need Docker installed.
git clone https://github.com/kurinniy/grafana-sql-cohort.git

cd grafana-sql-cohort

chmod -R 777 grafana-storage

docker-compose up --build
  1. After installation complete, open Grafana in browser:

http://0.0.0.0:3000

Login: admin
Password: secret

  1. Enjoy!