Skip to content

Instantly share code, notes, and snippets.

@ybizeul
Last active February 4, 2022 18:34
Show Gist options
  • Select an option

  • Save ybizeul/f24c459ef8406ee5b95b7023ebebab25 to your computer and use it in GitHub Desktop.

Select an option

Save ybizeul/f24c459ef8406ee5b95b7023ebebab25 to your computer and use it in GitHub Desktop.

Revisions

  1. ybizeul renamed this gist Feb 4, 2022. 1 changed file with 11 additions and 7 deletions.
    18 changes: 11 additions & 7 deletions gistfile1.txt → manual_dashboard_import.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,22 @@
    # Manually importing dashboards in NAbox 3.0.1
    ### Manually importing dashboards in NAbox 3.0.1

    # Log into NAbox with ssh, root/NetAppGrafanaVA is default credentials
    * Log into NAbox with ssh, root/NetAppGrafanaVA is default credentials

    # Jump into netapp harvest container
    * Jump into netapp harvest container

    ```
    dc exec nabox-harvest2
    ```

    #

    # Change directory
    * Change directory

    ```
    cd /netapp-harvest
    ```

    # Run dashboard import, don't forget to answer question with "y"
    * Run dashboard import, don't forget to answer question with "y"

    ```
    ./bin/grafana import -a $GRAFANA_SERVER -t `cat /secrets/harvest-grafana`
    using API token from config
    connected to Grafana server (version: 8.4.0-beta1)
    @@ -32,4 +35,5 @@ OK - imported [harvest_dashboard_shelf.json]
    OK - imported [harvest_dashboard_snapmirror.json]
    OK - imported [harvest_dashboard_svm.json]
    OK - imported [harvest_dashboard_volume.json]
    ```
    exit
  2. ybizeul revised this gist Feb 4, 2022. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -3,12 +3,17 @@
    # Log into NAbox with ssh, root/NetAppGrafanaVA is default credentials

    # Jump into netapp harvest container

    dc exec nabox-harvest2

    # Run dashboard import, don't forget to answer question with "y"
    #

    # Change directory

    cd /netapp-harvest

    # Run dashboard import, don't forget to answer question with "y"

    ./bin/grafana import -a $GRAFANA_SERVER -t `cat /secrets/harvest-grafana`
    using API token from config
    connected to Grafana server (version: 8.4.0-beta1)
  3. ybizeul created this gist Feb 4, 2022.
    30 changes: 30 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    # Manually importing dashboards in NAbox 3.0.1

    # Log into NAbox with ssh, root/NetAppGrafanaVA is default credentials

    # Jump into netapp harvest container
    dc exec nabox-harvest2

    # Run dashboard import, don't forget to answer question with "y"

    cd /netapp-harvest

    ./bin/grafana import -a $GRAFANA_SERVER -t `cat /secrets/harvest-grafana`
    using API token from config
    connected to Grafana server (version: 8.4.0-beta1)
    8.4.0-beta1 does not satisfies constraints >= 7.1.0warning: current set of dashboards require Grafana version (7.1.0) or higher
    continue anyway? [y/N]: y
    folder [Harvest 2.0] exists in Grafana - OK
    preparing to import 12 dashboards...
    OK - imported [harvest_dashboard_aggregate.json]
    OK - imported [harvest_dashboard_cluster.json]
    OK - imported [harvest_dashboard_disk.json]
    OK - imported [harvest_dashboard_metadata.json]
    OK - imported [harvest_dashboard_network.json]
    OK - imported [harvest_dashboard_node.json]
    OK - imported [harvest_dashboard_nvme_fc.json]
    OK - imported [harvest_dashboard_shelf.json]
    OK - imported [harvest_dashboard_snapmirror.json]
    OK - imported [harvest_dashboard_svm.json]
    OK - imported [harvest_dashboard_volume.json]
    exit