Grafana panel plugin to create directed graph based on queries data. Based on:
Clone plugin into grafana plugins folder and restart grafana server
git clone https://github.com/grafana/piechart-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.piechart] path = /home/your/clone/dir/piechart-panel
- To create a node you just need to add
#
withnode-id
into your queries alias. Now you have the node with id which you typed after#
in alias field. Node size and label depends on data returned by the query you've added the alias to.
- To create an edge you add to alias
node id without #=node id without #
. So if you want to connect node #a and node #b you add this alias to the querya=b
and now there is an edge with id a=b. Based on the value returned by the query edge will change its opacity.
- To add a title to the edge you can use
*
just add to the alias*your-edge-id
and data from the query will appear as a label of this edge.
- To append something to existing edge's label you should add
+
after*
and your query's value will be shown after old label and/
sign
- To subtract some query's value from edge's label value you can use minus
-
. After your edge's label alias add-nuber_of_query
( the number starting from 0) and it will subtract this value and show the new label. You can subtract from both new and appended labels.