Grafana dashboards are backward compatible which can be exported from previous version of Grafana and imported into Garfana 7.X by doing the following changes in the exported json file Export Dashboards Info |
---|
There are two data formats in Grafana 7.X Table and Graph. Either of one should be selected based on the panel preference |
Exported Dashboard json file | Compatible changes for Grafana 7.X |
---|
Code Block |
---|
| {
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 371,
"links": [],
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "Neo4j_Local",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 2,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"checkQuery": false,
"hide": true,
"rawQuery": true,
"refId": "A",
"table": true,
"target": "MATCH (n:ALM) RETURN count(n)",
"timeSeries": true
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Panel Title",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
}
],
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "New dashboard Copy",
"uid": "q2Sdbc7Mz",
"version": 4
} |
| Code Block |
---|
| {
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": 371,
"links": [],
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "Neo4j_Local",
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 9,
"w": 12,
"x": 0,
"y": 0
},
"id": 2,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"rangeMaps": [
{
"from": "null",
"text": "N/A",
"to": "null"
}
],
"sparkline": {
"fillColor": "rgba(31, 118, 189, 0.18)",
"full": false,
"lineColor": "rgb(31, 120, 193)",
"show": false
},
"tableColumn": "",
"targets": [
{
"checkQuery": false,
"hide": false,
"table": true,
"refId": "A",
"table": true,
"queryText": "MATCH (n:ALM) RETURN count(n)",
"timeSeries": true
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Panel Title",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
}
],
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-6h",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "New dashboard Copy",
"uid": "q2Sdbc7Mz",
"version": 4
} |
|
If the panel is a graph panel then mark table as false and mark graph as true Exported Dashboard json file | Compatible changes for Grafana 7.X |
---|
Code Block |
---|
| {
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": |
| 371316,
"links": [],
"panels": [
{
"aliasColors": |
| [ {},
"bars": false,
"dashLength": 10,
|
| { | cacheTimeout | null | colorBackground | false | colorValue | false, | colors | [ | #299c46 | rgba(237, 129, 40, 0.89)" | #d44a3a | ] | datasource | "Neo4j_Local" | format | "none", | gauge | { | maxValue | 100 | minValue | 0 | show | thresholdLabels | thresholdMarkers | }, | | gridPos | { | h | 9, | w | 12 |
| | x | 0 | | y | 0 | }"nullPointMode": "null",
" |
| id | 2 | interval | null | links | [] | mappingType | 1 | mappingTypes | {
| | name | "value to text",
| | value | 1 | }, | | name | "range to text" | value | 2 | } | ],
"maxDataPoints": 100, | nullPointMode | connected | nullText | null,
"postfix": "" "MATCH (n:MaturityTrend) RETURN n.inSightsTime as Time, n.vectorValue as MaturityValue order by Time",
" |
| postfixFontSize | "50%", | "prefix": | "", | "prefixFontSize": "50%" | rangeMaps | [ | { | from | " | " | | text | N/A |
| | to | "null" | }
| ], | | sparkline | { | fillColor | rgba(31, 118, 189, 0.18)",
| "full": false | | lineColor | rgb(31, 120, 193) | | show | false | } | tableColumn | targets | [ | {
| checkQuery | false, | hide | true, | "rawQuery": true, | refId | A | table | true | target | "MATCH (n:ALM) RETURN count(n)" | timeSeries | true | } | ], | thresholds | "", | "timeFrom": | null | "timeShift": null, | title | Panel Title | type | "singlestat" | valueFontSize | "80%" | valueMaps | [ | { | op | "=", | "text": | "N/A", | value | "null" | } | ],
| "valueName": "avg" }
}
],
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now- |
| 6h2y",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
]
},
"timezone": "",
"title": "New dashboard Copy",
"uid": " |
| q2Sdbc7Mz | 4 | Code Block |
---|
| {
"annotations": {
"list": [ |
|
{
"builtIn": 1,
| "datasource": | "-- | Grafana | --",
"enable": true,
"hide": true, | iconColor | "rgba(0, 211, 255, | )" | name | Annotations | & | Alerts | type | "dashboard"
}
| ] | }, | | editable | "gnetId": null, | graphTooltipiconColor": "rgba(0, 211, 255, 1)" |
| id": | 371, | "links": [], | panels | [ | { | cacheTimeout | : | null, | "colorBackground": | false, | colorValue | false | colors | [ | "#299c46" | "rgba(237, 129, 40, 0.89)" | "#d44a3a" | ] | datasource | "Neo4j_Local" | format | "none" | gauge | { | | maxValue | 100 | | minValue | 0 | | show | false, | thresholdLabels | false | thresholdMarkers | true
| }, | gridPos | { | h | 9, | w | 12 |
| | x | 0, | y | 0
| }, | | id | 2 | interval | null | links | [] | mappingType | 1 | mappingTypes | [ | {
| name | "value | to | text", | value | 1 | } | {[],
"nullPointMode": "null",
" |
| name | "range to text",false,
"pointradius": 5,
" |
| value | 2true,
"renderer": "flot",
|
| } | maxDataPoints | 100 | nullPointMode | "connected" | nullText | null | postfix | "", | "postfixFontSize": | "50%", | prefix | "", | prefixFontSize | "50%", | rangeMaps | [ | { | from | null",
"text": "N/A"MATCH (n:MaturityTrend) RETURN n.inSightsTime as Time, n.vectorValue as MaturityValue order by Time",
" |
| to | "null" | sparkline | {
| fillColor | "rgba(31, 118, 189, 0.18)" | | full | false |
| | lineColor | rgb(31, 120, 193)",Consolidated Trend",
"tooltip": {
" |
| show | false | }, | | tableColumn | "" | targetsvalue_type": "individual"
|
| [ | { | checkQuery | false, | | hide | false | | table | true | | refId | "A" | | table |
| | queryText": "MATCH (n:ALM) RETURN count(n)", | timeSeries | true | } | ],
| thresholds | timeFrom | null, | timeShift | null | title | "Panel Title", | type | "singlestat" | valueFontSize | "80%", | "valueMaps": [ | op | = | text | "N/A" | value | "null" | } | ], | valueName | "avg" | } | ], | schemaVersion | 18, | "style": | "dark", | "tags": | [],
"templating": { | "list": | [ | }, | time | "from": | "now-6h", | | to | "now"
} | "timepicker": | { | refresh_intervals | [ | "5s", | "10s"],
"schemaVersion": 18,
"style": " |
| 30s | 1m | , | | 5m", | | 15m | , | 30m | | 1h | , | | 2h | , | | 1d | ], | time_options | : | [ | | 5m | 15m | 1h | 6h | 12h | 24h | 2d | 7d | 30d | }, | "timezone": | "title": "New dashboard Copy | "uid": | "q2Sdbc7Mz", | version": 4
}
|