Following commands are used to operate on panels in json files stored locally under dashboards/panels directory. These commands need Dashboard Context. Please set Dashboard Context before using them.
copy - Copies a panel from one position to another. This command can be used to copy a panel on the same dashboard and as well as to copy a panel to other dashboards.
$ wizzy copy panel SOURCE DESTINATION
SOURCE represents panel number on a row in the context dashboard. Should be a
DESTINATION can represent a panel number on the same dashboard or on a different dashboard. Can be a
For example, If you want to copy 2nd panel from 1st row as 4th panel in 5th row in the context dashboard, use:
$ wizzy copy panel 1.2 5.4
_For example, If you want to copy 2nd panel from 1st row as 4th panel in 5th row in another dashboard, use:
$ wizzy copy panel 1.2 cpu-stats.5.4
move - Moves a panel from one position to another. This command can be used to move a panel on the same dashboard and as well as to move a panel to other dashboards.
$ wizzy move panel SOURCE DESTINATION
$ wizzy move panel 1.2 5.4
$ wizzy move panel 1.2 cpu-stats.5.4
remove - Removes a panel from the context dashboard
$ wizzy remove panel PANEL_NUMBER.ROW_NUMBER
For example, to delete 1st panel from 2nd row from your local json:
$ wizzy remove panel 2.1
extract - Copies panel json object and saves it as a separate file under panels directory. This command is useful if you want to re-use this panel in many dashboards. Later you can use
insert command to insert this panel into any dashboard. Needs dashboard context to be set.
$ wizzy extract panel ROW_NUMBER.PANEL_NUMBER PANEL_NAME
$ wizzy extract panel 2.1 connections-panel
insert - Inserts an extracted panel from panels directory into a dashboard.
$ wizzy insert panel <DESTINATION>
DESTINATION can represent a row number on the same dashboard or on a different dashboard. Can be a
DASHBOARD_SLUG is not specified then this command will insert the row in context dashboard.
$ wizzy insert panel connections-panel 3 $ wizzy insert panel connections-panel cassandra-stats.3
_Note: PANELNUMBER starts from 1.