Migrate Locations dashboard

This commit is contained in:
Adrian Kumpf
2022-01-21 17:31:37 +01:00
parent 832398b319
commit 46f811346c
+347 -269
View File
@@ -8,14 +8,20 @@
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"target": {
"limit": 100,
"matchAny": false,
"tags": [],
"type": "dashboard"
},
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"iteration": 1594301176676,
"iteration": 1642771806943,
"links": [
{
"icon": "dashboard",
@@ -35,15 +41,13 @@
"type": "dashboards"
}
],
"liveNow": false,
"panels": [
{
"cacheTimeout": null,
"datasource": "TeslaMate",
"fieldConfig": {
"defaults": {
"custom": {},
"mappings": [],
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
@@ -64,7 +68,6 @@
"y": 0
},
"id": 12,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -86,7 +89,7 @@
},
"textMode": "value"
},
"pluginVersion": "7.2.1",
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -117,19 +120,14 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Total addresses",
"type": "stat"
},
{
"cacheTimeout": null,
"datasource": "TeslaMate",
"fieldConfig": {
"defaults": {
"custom": {},
"mappings": [],
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
@@ -150,7 +148,6 @@
"y": 0
},
"id": 20,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -172,7 +169,7 @@
},
"textMode": "value"
},
"pluginVersion": "7.2.1",
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -203,19 +200,14 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Cities",
"type": "stat"
},
{
"cacheTimeout": null,
"datasource": "TeslaMate",
"fieldConfig": {
"defaults": {
"custom": {},
"mappings": [],
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
@@ -236,7 +228,6 @@
"y": 0
},
"id": 18,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -258,7 +249,7 @@
},
"textMode": "value"
},
"pluginVersion": "7.2.1",
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -289,19 +280,14 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "States",
"type": "stat"
},
{
"cacheTimeout": null,
"datasource": "TeslaMate",
"fieldConfig": {
"defaults": {
"custom": {},
"mappings": [],
"nullValueMode": "connected",
"thresholds": {
"mode": "absolute",
"steps": [
@@ -322,7 +308,6 @@
"y": 0
},
"id": 16,
"interval": null,
"links": [],
"maxDataPoints": 100,
"options": {
@@ -344,7 +329,7 @@
},
"textMode": "value"
},
"pluginVersion": "7.2.1",
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -375,8 +360,6 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Countries",
"type": "stat"
},
@@ -387,7 +370,6 @@
"color": {
"mode": "thresholds"
},
"custom": {},
"displayName": "$__cell_0",
"mappings": [],
"max": 100,
@@ -427,7 +409,7 @@
},
"showUnfilled": true
},
"pluginVersion": "7.2.1",
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -456,8 +438,6 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Cities",
"type": "bargauge"
},
@@ -468,7 +448,6 @@
"color": {
"mode": "thresholds"
},
"custom": {},
"displayName": "$__cell_0",
"mappings": [],
"max": 100,
@@ -508,7 +487,7 @@
},
"showUnfilled": true
},
"pluginVersion": "7.2.1",
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -539,8 +518,6 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "States",
"type": "bargauge"
},
@@ -552,7 +529,7 @@
"mode": "thresholds"
},
"custom": {
"align": null,
"displayMode": "auto",
"filterable": false
},
"mappings": [],
@@ -611,10 +588,22 @@
},
"id": 22,
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true,
"sortBy": []
"sortBy": [
{
"desc": true,
"displayName": "Date"
}
]
},
"pluginVersion": "7.2.1",
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -645,8 +634,6 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Last visited",
"transformations": [
{
@@ -663,15 +650,195 @@
"type": "table"
},
{
"columns": [],
"datasource": "TeslaMate",
"fieldConfig": {
"defaults": {
"custom": {}
"color": {
"mode": "thresholds"
},
"custom": {
"displayMode": "auto"
},
"decimals": 2,
"displayName": "",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "updated_at"
},
"properties": [
{
"id": "displayName",
"value": "Updated at"
},
{
"id": "unit",
"value": "time: YYYY-MM-DD HH:mm:ss"
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "name"
},
"properties": [
{
"id": "displayName",
"value": "Name"
},
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "links",
"value": [
{
"targetBlank": true,
"title": "",
"url": "[[base_url:raw]]/geo-fences/${__data.fields.path}"
}
]
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "neighbourhood"
},
"properties": [
{
"id": "displayName",
"value": "Neighbourhood"
},
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "city"
},
"properties": [
{
"id": "displayName",
"value": "City"
},
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "state"
},
"properties": [
{
"id": "displayName",
"value": "State"
},
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "country"
},
"properties": [
{
"id": "displayName",
"value": "Country"
},
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "path"
},
"properties": [
{
"id": "custom.align"
},
{
"id": "custom.hidden",
"value": true
}
]
}
]
},
"fontSize": "100%",
"gridPos": {
"h": 11,
"w": 18,
@@ -680,143 +847,17 @@
},
"id": 2,
"links": [],
"pageSize": 10,
"scroll": false,
"showHeader": true,
"sort": {
"col": 7,
"desc": true
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"styles": [
{
"alias": "Updated at",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "updated_at",
"type": "date"
},
{
"alias": "Name",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"link": true,
"linkTargetBlank": true,
"linkTooltip": "",
"linkUrl": "[[base_url:raw]]/geo-fences/${__cell_0:raw}",
"mappingType": 1,
"pattern": "name",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"alias": "Neighbourhood",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "neighbourhood",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"alias": "City",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "city",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"alias": "State",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "state",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"alias": "Country",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "country",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "path",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -847,22 +888,115 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Addresses",
"transform": "table",
"type": "table-old"
"transformations": [
{
"id": "merge",
"options": {
"reducers": []
}
}
],
"type": "table"
},
{
"columns": [],
"datasource": "TeslaMate",
"fieldConfig": {
"defaults": {
"custom": {}
"color": {
"mode": "thresholds"
},
"custom": {
"displayMode": "auto"
},
"decimals": 2,
"displayName": "",
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "short"
},
"overrides": []
"overrides": [
{
"matcher": {
"id": "byName",
"options": "Time"
},
"properties": [
{
"id": "displayName",
"value": "Time"
},
{
"id": "unit",
"value": "time: YYYY-MM-DD HH:mm:ss"
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "name"
},
"properties": [
{
"id": "displayName",
"value": "Name"
},
{
"id": "unit",
"value": "short"
},
{
"id": "decimals",
"value": 2
},
{
"id": "links",
"value": [
{
"targetBlank": true,
"title": "",
"url": "[[base_url:raw]]/geo-fences/${__data.fields.id.numeric}/edit"
}
]
},
{
"id": "custom.align"
}
]
},
{
"matcher": {
"id": "byName",
"options": "id"
},
"properties": [
{
"id": "custom.align"
},
{
"id": "custom.hidden",
"value": true
}
]
}
]
},
"fontSize": "100%",
"gridPos": {
"h": 11,
"w": 6,
@@ -870,75 +1004,17 @@
"y": 22
},
"id": 6,
"pageSize": null,
"scroll": true,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
"options": {
"footer": {
"fields": "",
"reducer": [
"sum"
],
"show": false
},
"showHeader": true
},
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"alias": "Name",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"link": true,
"linkTargetBlank": true,
"linkTooltip": "",
"linkUrl": "[[base_url:raw]]/geo-fences/${__cell_0}/edit",
"mappingType": 1,
"pattern": "name",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "id",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"decimals": 2,
"pattern": "/.*/",
"thresholds": [],
"type": "number",
"unit": "short"
}
],
"pluginVersion": "8.3.4",
"targets": [
{
"format": "table",
@@ -967,14 +1043,19 @@
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Geo-fences",
"transform": "table",
"type": "table-old"
"transformations": [
{
"id": "merge",
"options": {
"reducers": []
}
}
],
"type": "table"
}
],
"schemaVersion": 26,
"schemaVersion": 34,
"style": "dark",
"tags": [
"tesla"
@@ -982,7 +1063,6 @@
"templating": {
"list": [
{
"allValue": null,
"current": {
"selected": true,
"text": [
@@ -1006,13 +1086,11 @@
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"allValue": null,
"current": {
"selected": false,
"text": "http://localhost:4000",
@@ -1032,7 +1110,6 @@
"skipUrlSync": false,
"sort": 0,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
@@ -1092,5 +1169,6 @@
"timezone": "",
"title": "Locations",
"uid": "ZzhF-aRWz",
"version": 1
"version": 1,
"weekStart": ""
}