Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

Database Backup


 Windows
  • Stop the previous version of Grafana running on the instance and change the start type as Manual

  • Follow the below steps to backup existing database

    • Navigate to <postgres_installation_path>/bin

    • Backup DB using by executing the command pg_dump --username=username --password=password grafana > grafana_backup

 Linux
  • Stop the previous version of Grafana running on the instance

  • Follow the below steps to backup existing database

    • Navigate to <postgres_installation_path>/bin

    • Backup DB using by executing the command pg_dump --username=username --password=password grafana > grafana_backup

Dashboard Migration


Please note “singlestat” plugin is deprecated in Grafana 7

  • Export Dashboards as json file from the previous Grafana version

  • change the following fields inside targets array of export json file

    • target” to “queryText

    • rawQuery” to “table

    • “hide”: true to “hide”: false

      "targets": [
        {
          "checkQuery": false,
          "hide": false,
          "table": true,
          "refId": "A",
          "queryText": "<query>"
        }
      ],

  • No labels