Immutable Grafana with dashboard & datasource as code
for the latest working version with grafana > 5 you can check an example here: https://github.com/istio/istio/tree/master/addons/grafana
Immutable Grafana with dashboard & datasource as code.
This feature is only available in grafana master branch, and is scheduled to be release with Grafana 4.7! Check here: https://github.com/grafana/grafana/milestone/72
If you consider to use this approach for your code, I suggest you tag the grafana/grafana:master with your own tag and use that image instead, so that you are not suprised if grafana/grafana:master is suddenly not so stable.
Start / run / play around with:
docker-compose up
If you need to rebuild the containers, simply use
docker-compose up --build
Purpose of this project is to showcase how to package different grafana configurations directly into a custom grafana image.
Workflow for editing / saving a custom dashbord is simply: