Dashboard Commands

Following commands are used to interact with Grafana dashboards.

  • list - Prints the list of dashboards/dashboard-tags from Grafana in a tabular format

    $ wizzy list dashboards
    $ wizzy list dash-tags
    
  • show - Prints remote dashboard json from Grafana

    $ wizzy show dashboard DASHBOARD_SLUG
    

    For example:

    $ wizzy show dashboard cpu-stats
    
  • import - Imports remote dashboards json objects into your local dashboards directory. This command creates a new file if the dashboard does not exist or replaces an existing file if the dashboard exists locally. For importing all dashboards from Grafana, use following command:

    $ wizzy import dashboards
    

    If you want to import only one remote dashboard, please use the following command:

    $ wizzy import dashboard DASHBOARD_SLUG
    

    For example:

    $ wizzy import dashboard cpu-stats
    

    Note: wizzy removes version field from the imported dashboard before saving it to the disk as version is something what Grafana takes care of for a dashboard.

  • export - Exports local dashboards to be saved as a remote dashboard and go live in your Grafana installation. This will replace an existing dashboard or creates a new dashboard in Grafana. Please use this carefully. For exporting all local dashboards to Grafana, use the following command:

    $ wizzy export dashboards
    

    If you want to export only one local dashboard, please use the following command:

    $ wizzy export dashboard DASHBOARD_SLUG
    

    For example:

    $ wizzy export dashboard cpu-stats
    
  • delete - Deletes a remote dashboard from your Grafana installation. Use carefully.

    $ wizzy delete dashboard DASHBOARD_SLUG
    

    For example:

    $ wizzy delete dashboard cpu-stats
    
  • clip - Generate a gif image for Grafana dashboards. Please set all 6 clip configuration properties otherwise this command will not work. To know how to set properties, please look at General commands. Generated clip will be under clips directory. Makes a clip of a dashboard’s last 24 hours of data:

    $ wizzy clip dashboard DASHBOARD_SLUG
    

    For example:

    $ wizzy clip dashboard cpu-stats
    

    Makes a clip of dashboards having a specific dashboard tag:

    $ wizzy clip dashboards-by-tag DASHBOARD_TAG_NAME
    

    For example:

    $ wizzy clip dashboards-by-tag graphite
    

    Makes a clip of dashboards from a custom dashboard list:

    $ wizzy clip dash-list DASH_LIST_NAME
    

    For example:

    $ wizzy clip dash-list cassandra-dashbaords
    

    Note: Please delete the temp directory created locally as it contains intermediate images to create the clip.