- Created by anunandhini (Unlicensed) , last modified on Jul 17, 2020
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 24 Next »
Step1: Database Backup
Recommended to migrated in Test instance initially
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 by executing the command pg_dump --username=username --password=password grafana > grafana_backup
To Restore Database - psql grafana < grafana_backup
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 by executing the command pg_dump --username=username --password=password grafana > grafana_backup
To Restore Database - psql grafana < grafana_backup
Grafana Migration
Singlestat and Table plugins are removed in grafana 7.0.3
Singlestat is replaced with Stat; Stat is a Grafana native plugin which has more features than Singlestat
Table plugin is replaced with Newtable plugin
Please Note Newtable plugin does not have pagination
But we have use the old SingleStat and Table plugin which is backward compatible using export and import previous Grafana Dashboard json.
Insights now has two Neo4j DataSource plugin
Neo4j2.0 - Typescript and Angular.js based.
Neo4j3.0 - Using React Framework with Grafana in-built plugin framework
- Both these data source will work fine in Grafana 7.0.3 but any feature improvements will be added only to Neo4j3.0 since Grafana moved its source code to support react . So it is recommended to use the latest DataSource plugin Neo4j3.0 for Grafana Migration.
For a successful migration ensure to rename the existing DataSources and create new DataSources using lastest DataSource plugin Neo4j3.0, before starting the Dashboard Migration
Before importing the dashboards into Grafana delete the existing dashboards to avoid error “A dashboard in this folder with the same name already exists”
Grafana dashboards are backward compatible which can be exported from previous version of Grafana and imported into Grafana 7.0.3 by doing the following changes in the exported json file
There are two data formats in Grafana 7.0.3 Table and Graph(timeseries). Either of one should be selected in the datasource while querying based on the panel preference
Export Dashboards as json file from the previous Grafana version
change the following fields inside targets array of export json file as below and the same is depicted as table comparisons higlighting differences
“target” to “queryText”
“rawQuery” to “table”
“hide”: true to “hide”: false
Exported Dashboard json file(previous Grafana Version) | Compatible changes for Grafana 7.0.3 |
---|---|
{ } | { } |
If the panel is a graph panel then mark table as false and mark graph as true
“table: false,
”graph”: true,
Exported Dashboard json file | Compatible changes for Grafana 7.X |
---|---|
{ | { |
- No labels