Sankey Diagram panel for Grafana
This plugin development is inspired by Grafana pie chart. I have used this code as a base-line to develop this plugin
The Sankey diagram has been created using the Google Chart
In this plugin, the Sankey daigram panel has been used to visualize the distribution between 2 keys. Important - This panel is dependent on the google chart and requires loader.js which needs to be included in the Grafana index.html file
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
The query in the metrics should be grouped by the 2 keys between which the distribution needs to be visualized as shown below.
It is also possible to clone this repo directly into your plugins directory.
Afterwards restart grafana-server and the plugin should be automatically detected and used.
git clone https://github.com/kumaravel29/sankey-panel.git
sudo service grafana-server restart
If the plugin is cloned to a directory that is not the default plugins directory then you need to edit your grafana.ini config file (Default location is at /etc/grafana/grafana.ini) and add this:
[plugin.sankey]
path = /home/your/clone/dir/sankey-panel
Note that if you clone it into the grafana plugins directory you do not need to add the above config option. That is only if you want to place the plugin in a directory outside the standard plugins directory. Be aware that grafana-server needs read access to the directory.
1.0.0 - Initial plugin code for Grafana 4.6
2.0.0 - Changes for support Grafana 5.x