Datasource Commands

Following commands are used to interact with Grafana datasources.

  • show - Shows you all the Grafana datasources in JSON format. To see all datasources, use the following command:

    $ wizzy show datasources
    

    To see a single datasource, use the following command:

    $ wizzy show datasource DATASOURCE_NAME
    

    For example:

    $ wizzy show datasource my-graphite
    
  • import - Imports datasources in JSON format and store under datasources directory For importing all datasourcources, use the following command:

    $ wizzy import datasources
    

    And for importing only 1 datasource, use the following command:

    $ wizzy import datasource DATASOURCE_NAME
    

    For example:

    $ wizzy import datasource my-graphite
    
  • export - Export datasources from local to Grafana installation For exporting all datasources:

    $ wizzy export datasources
    

    For exporting a single datasource:

    $ wizzy export datasource DATASOURCE_NAME
    

    For example:

    $ wizzy export datasource my-graphite