Skip to content
A simple Flask server demonstrating the basics of the Grafana simplejson datasource.
Branch: master
Clone or download
Jonathan McCall
Jonathan McCall the commit
Latest commit 4a9ce50 Oct 9, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information. the commit Oct 8, 2018 the commit Oct 8, 2018

Up and running in a few minutes

You have Docker installed already, right? Good.

docker run -d -p 3000:3000 \
  --name=grafana \
  -e 'GF_INSTALL_PLUGINS=grafana-simple-json-datasource' \
pip install flask

Now go to http://localhost:3000 and log into Grafana with admin:admin.

Next create a datasource in Grafana with type="SimpleJson" and URL="http://docker.for.mac.localhost:5000".

The above works with Docker for Mac, if you are using another OS then the hostname will need to be different in order to access the locally running Flask server.

Now you can create a dashboard with a graph panel, use the simplejson datasource you created, and interact with the Flask server you started.

You can’t perform that action at this time.