diff --git a/grafana/dashboards/charges.json b/grafana/dashboards/charges.json index d793a3706b..4c21697858 100644 --- a/grafana/dashboards/charges.json +++ b/grafana/dashboards/charges.json @@ -5,7 +5,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "10.4.0" + "version": "11.0.0" }, { "type": "datasource", @@ -873,7 +873,7 @@ } ] }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { "datasource": { @@ -997,9 +997,13 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -1025,11 +1029,7 @@ "params": [], "type": "macro" } - ], - "datasource": { - "type": "grafana-postgresql-datasource", - "uid": "TeslaMate" - } + ] } ], "title": "Energy added", @@ -1098,9 +1098,13 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -1126,11 +1130,7 @@ "params": [], "type": "macro" } - ], - "datasource": { - "type": "grafana-postgresql-datasource", - "uid": "TeslaMate" - } + ] } ], "title": "Energy used", @@ -1200,9 +1200,13 @@ "textMode": "auto", "wideLayout": true }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -1228,11 +1232,7 @@ "params": [], "type": "macro" } - ], - "datasource": { - "type": "grafana-postgresql-datasource", - "uid": "TeslaMate" - } + ] } ], "title": "Cost", @@ -1429,6 +1429,7 @@ "from": "now-6M", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -1457,6 +1458,6 @@ "timezone": "", "title": "Charges", "uid": "TSmNYvRRk", - "version": 5, + "version": 3, "weekStart": "" -} +} \ No newline at end of file diff --git a/grafana/dashboards/drive-stats.json b/grafana/dashboards/drive-stats.json index b8b5af28a4..c19e225b5f 100644 --- a/grafana/dashboards/drive-stats.json +++ b/grafana/dashboards/drive-stats.json @@ -1,9 +1,39 @@ { + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + } + ], "annotations": { "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -13,9 +43,9 @@ ] }, "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1644505954964, + "id": null, "links": [ { "icon": "dashboard", @@ -38,7 +68,10 @@ "panels": [ { "collapsed": false, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "gridPos": { "h": 1, "w": 24, @@ -48,24 +81,27 @@ "id": 12, "panels": [], "repeat": "car_id", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" + "repeatDirection": "h", + "targets": [ + { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, + "refId": "A" } - }, + ], "title": "$car_id", "type": "row" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -86,8 +122,6 @@ "y": 1 }, "id": 20, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -106,18 +140,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -146,19 +179,17 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Number of drives", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -204,8 +235,6 @@ "y": 1 }, "id": 16, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -224,18 +253,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -264,19 +292,17 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "$length_unit driven", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -297,8 +323,6 @@ "y": 1 }, "id": 22, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -317,18 +341,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -357,27 +380,27 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "kWh used", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [ { - "id": 0, - "op": "=", - "text": "N/A", - "type": 1, - "value": "null" + "options": { + "match": "null", + "result": { + "text": "N/A" + } + }, + "type": "special" } ], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -423,8 +446,6 @@ "y": 5 }, "id": 26, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -443,18 +464,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -483,19 +503,17 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Average distance of a drive", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -541,8 +559,6 @@ "y": 5 }, "id": 8, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -561,18 +577,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -601,19 +616,17 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Average distance driven per day", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -634,8 +647,6 @@ "y": 5 }, "id": 14, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -654,18 +665,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -694,19 +704,17 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Average kWh used per day", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -752,8 +760,6 @@ "y": 8 }, "id": 32, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -772,18 +778,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -812,19 +817,17 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Extrapolated monthly mileage", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -870,8 +873,6 @@ "y": 8 }, "id": 30, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -890,18 +891,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -930,19 +930,19 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Extrapolated annual mileage", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, - "custom": {}, "displayName": "$__cell_0", "mappings": [], "max": 100, @@ -973,6 +973,10 @@ "id": 24, "options": { "displayMode": "gradient", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -981,18 +985,17 @@ "fields": "", "values": true }, - "showUnfilled": true - }, - "pluginVersion": "7.1.4", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -1021,28 +1024,23 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Top Destinations", "type": "bargauge" } ], "refresh": false, - "schemaVersion": 26, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "allValue": null, - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -1056,23 +1054,19 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, - "label": null, "multi": false, "name": "length_unit", "options": [], @@ -1082,23 +1076,19 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "C", - "value": "C" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_temperature from settings limit 1;", "hide": 2, "includeAll": false, - "label": null, "multi": false, "name": "temp_unit", "options": [], @@ -1108,19 +1098,16 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "ideal", - "value": "ideal" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, @@ -1134,19 +1121,16 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -1160,7 +1144,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -1171,6 +1154,7 @@ "from": "now-1y", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "hidden": false, "refresh_intervals": [ @@ -1200,5 +1184,6 @@ "timezone": "", "title": "Drive Stats", "uid": "_7WkNSyWk", - "version": 1 -} + "version": 3, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboards/drives.json b/grafana/dashboards/drives.json index ede4cbd701..130e7ff7db 100644 --- a/grafana/dashboards/drives.json +++ b/grafana/dashboards/drives.json @@ -1,4 +1,25 @@ { + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + } + ], "annotations": { "list": [ { @@ -22,7 +43,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1642770916740, + "id": null, "links": [ { "icon": "dashboard", @@ -59,6 +80,10 @@ "type": "row" }, { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -66,7 +91,10 @@ }, "custom": { "align": "auto", - "displayMode": "auto" + "cellOptions": { + "type": "auto" + }, + "inspect": false }, "mappings": [], "thresholds": { @@ -350,8 +378,10 @@ "value": "percentunit" }, { - "id": "custom.displayMode", - "value": "color-text" + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } }, { "id": "custom.align" @@ -666,8 +696,10 @@ "value": "❄" }, { - "id": "custom.displayMode", - "value": "color-text" + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } }, { "id": "custom.align", @@ -763,9 +795,10 @@ "y": 1 }, "id": 2, - "links": [], "options": { + "cellHeight": "sm", "footer": { + "countRows": false, "fields": "", "reducer": [ "sum" @@ -774,11 +807,14 @@ }, "showHeader": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -805,7 +841,6 @@ ] } ], - "datasource": "TeslaMate", "title": "Drive", "transformations": [ { @@ -818,20 +853,18 @@ "type": "table" } ], - "schemaVersion": 36, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -850,12 +883,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "C", - "value": "C" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_temperature from settings limit 1;", "hide": 2, "includeAll": false, @@ -874,12 +906,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -898,12 +929,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "ideal", - "value": "ideal" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, @@ -922,12 +952,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -981,6 +1010,7 @@ "from": "now-30d", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", diff --git a/grafana/dashboards/efficiency.json b/grafana/dashboards/efficiency.json index 1bd2bcb865..a91e2fb91a 100644 --- a/grafana/dashboards/efficiency.json +++ b/grafana/dashboards/efficiency.json @@ -1,9 +1,49 @@ { + "__inputs": [ + { + "name": "DS_TESLAMATE", + "label": "TeslaMate", + "description": "", + "type": "datasource", + "pluginId": "grafana-postgresql-datasource", + "pluginName": "PostgreSQL" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + } + ], "annotations": { "list": [ { "builtIn": 1, - "datasource": "-- Grafana --", + "datasource": { + "type": "datasource", + "uid": "grafana" + }, "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", @@ -13,9 +53,9 @@ ] }, "editable": true, - "gnetId": null, + "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1598013087999, + "id": null, "links": [ { "icon": "dashboard", @@ -38,7 +78,10 @@ "panels": [ { "collapsed": false, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "gridPos": { "h": 1, "w": 24, @@ -48,25 +91,27 @@ "id": 10, "panels": [], "repeat": "car_id", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" + "targets": [ + { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, + "refId": "A" } - }, + ], "title": "$car_id", "type": "row" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "decimals": 0, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -112,8 +157,6 @@ "y": 1 }, "id": 4, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -132,18 +175,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.2.1", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -172,20 +214,18 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Consumption (net)", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "decimals": 0, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -231,8 +271,6 @@ "y": 1 }, "id": 8, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -251,18 +289,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.2.1", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -291,20 +328,18 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Consumption (gross) ", "type": "stat" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "decimals": 0, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -350,8 +385,6 @@ "y": 1 }, "id": 6, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -370,18 +403,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.2.1", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -410,18 +442,22 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Logged Distance", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "custom": { - "align": null, - "filterable": false + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false }, "mappings": [], "max": 100, @@ -496,8 +532,11 @@ "value": 1 }, { - "id": "custom.displayMode", - "value": "lcd-gauge" + "id": "custom.cellOptions", + "value": { + "mode": "lcd", + "type": "gauge" + } }, { "id": "thresholds", @@ -654,8 +693,16 @@ "y": 4 }, "id": 2, - "links": [], "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, "showHeader": true, "sortBy": [ { @@ -664,16 +711,13 @@ } ] }, - "pluginVersion": "7.2.1", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } - }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -702,20 +746,18 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Temperature – Efficiency", "type": "table" }, { - "cacheTimeout": null, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { - "custom": {}, "decimals": 0, "mappings": [], - "nullValueMode": "connected", "thresholds": { "mode": "absolute", "steps": [ @@ -761,8 +803,6 @@ "y": 16 }, "id": 14, - "interval": null, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -781,18 +821,17 @@ "fields": "", "values": false }, - "textMode": "value" - }, - "pluginVersion": "7.2.1", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -821,18 +860,22 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Current $preferred_range efficiency", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "custom": { - "align": null, - "filterable": false + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false }, "mappings": [], "thresholds": { @@ -888,18 +931,24 @@ }, "id": 12, "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, "showHeader": true }, - "pluginVersion": "7.2.1", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } - }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -928,18 +977,22 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Derived ideal efficiencies", "type": "table" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "custom": { - "align": null, - "filterable": false + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false }, "mappings": [], "thresholds": { @@ -995,18 +1048,24 @@ }, "id": 15, "options": { + "cellHeight": "sm", + "footer": { + "countRows": false, + "fields": "", + "reducer": [ + "sum" + ], + "show": false + }, "showHeader": true }, - "pluginVersion": "7.2.1", - "scopedVars": { - "car_id": { - "selected": true, - "text": "1", - "value": "1" - } - }, + "pluginVersion": "11.0.0", "targets": [ { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -1035,27 +1094,22 @@ ] } ], - "timeFrom": null, - "timeShift": null, "title": "Derived rated efficiencies", "type": "table" } ], - "schemaVersion": 26, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "allValue": null, - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -1069,19 +1123,16 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "C", - "value": "C" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_temperature from settings limit 1;", "hide": 2, "includeAll": false, @@ -1095,19 +1146,16 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -1121,23 +1169,19 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "ideal", - "value": "ideal" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, - "label": null, "multi": false, "name": "preferred_range", "options": [], @@ -1147,15 +1191,13 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false }, { - "allValue": null, "current": { - "selected": true, + "selected": false, "text": "1", "value": "1" }, @@ -1197,13 +1239,11 @@ "type": "custom" }, { - "allValue": null, - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -1217,7 +1257,6 @@ "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", - "tags": [], "tagsQuery": "", "type": "query", "useTags": false @@ -1228,6 +1267,7 @@ "from": "now-6h", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "hidden": true, "refresh_intervals": [ @@ -1257,5 +1297,6 @@ "timezone": "", "title": "Efficiency", "uid": "fu4SiQgWz", - "version": 1 -} + "version": 2, + "weekStart": "" +} \ No newline at end of file diff --git a/grafana/dashboards/locations.json b/grafana/dashboards/locations.json index e65299e75a..24288b45c8 100644 --- a/grafana/dashboards/locations.json +++ b/grafana/dashboards/locations.json @@ -1,4 +1,37 @@ { + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + } + ], "annotations": { "list": [ { @@ -21,7 +54,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1642771806943, + "id": null, "links": [ { "icon": "dashboard", @@ -44,7 +77,10 @@ "liveNow": false, "panels": [ { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "mappings": [], @@ -68,7 +104,6 @@ "y": 0 }, "id": 12, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -87,9 +122,11 @@ "fields": "", "values": false }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -117,14 +154,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Total addresses", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "mappings": [], @@ -148,7 +192,6 @@ "y": 0 }, "id": 20, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -167,9 +210,11 @@ "fields": "", "values": false }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -197,14 +242,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Cities", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "mappings": [], @@ -228,7 +280,6 @@ "y": 0 }, "id": 18, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -247,9 +298,11 @@ "fields": "", "values": false }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -277,14 +330,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "States", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "mappings": [], @@ -308,7 +368,6 @@ "y": 0 }, "id": 16, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -327,9 +386,11 @@ "fields": "", "values": false }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -357,14 +418,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Countries", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -398,6 +466,10 @@ "id": 10, "options": { "displayMode": "gradient", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -406,9 +478,11 @@ "fields": "", "values": true }, - "showUnfilled": true + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -434,14 +508,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Cities", "type": "bargauge" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -475,6 +556,10 @@ "id": 14, "options": { "displayMode": "gradient", + "maxVizHeight": 300, + "minVizHeight": 16, + "minVizWidth": 8, + "namePlacement": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -483,9 +568,11 @@ "fields": "", "values": true }, - "showUnfilled": true + "showUnfilled": true, + "sizing": "auto", + "valueMode": "color" }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -513,22 +600,33 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "States", "type": "bargauge" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { - "displayMode": "auto", - "filterable": false + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false }, "mappings": [], "max": 100, @@ -586,7 +684,9 @@ }, "id": 22, "options": { + "cellHeight": "sm", "footer": { + "countRows": false, "fields": "", "reducer": [ "sum" @@ -601,7 +701,7 @@ } ] }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -629,7 +729,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Last visited", @@ -648,14 +752,21 @@ "type": "table" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { - "displayMode": "auto" + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false }, "decimals": 2, "displayName": "", @@ -844,9 +955,10 @@ "y": 22 }, "id": 2, - "links": [], "options": { + "cellHeight": "sm", "footer": { + "countRows": false, "fields": "", "reducer": [ "sum" @@ -855,7 +967,7 @@ }, "showHeader": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -883,7 +995,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Addresses", @@ -898,14 +1014,21 @@ "type": "table" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { "mode": "thresholds" }, "custom": { - "displayMode": "auto" + "align": "auto", + "cellOptions": { + "type": "auto" + }, + "inspect": false }, "decimals": 2, "displayName": "", @@ -1003,7 +1126,9 @@ }, "id": 6, "options": { + "cellHeight": "sm", "footer": { + "countRows": false, "fields": "", "reducer": [ "sum" @@ -1012,7 +1137,7 @@ }, "showHeader": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -1038,7 +1163,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Geo-fences", @@ -1053,24 +1182,18 @@ "type": "table" } ], - "schemaVersion": 36, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": true, - "text": [ - "All" - ], - "value": [ - "$__all" - ] + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 1, "includeAll": true, @@ -1089,12 +1212,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -1138,6 +1260,7 @@ "from": "now-30d", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "hidden": true, "refresh_intervals": [ @@ -1167,6 +1290,6 @@ "timezone": "", "title": "Locations", "uid": "ZzhF-aRWz", - "version": 1, + "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/grafana/dashboards/mileage.json b/grafana/dashboards/mileage.json index 16ca7ce583..21703fc2e7 100644 --- a/grafana/dashboards/mileage.json +++ b/grafana/dashboards/mileage.json @@ -1,4 +1,25 @@ { + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -21,7 +42,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1656100778202, + "id": null, "links": [ { "icon": "dashboard", @@ -58,13 +79,19 @@ "type": "row" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { "mode": "palette-classic" }, "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", "axisLabel": "", "axisPlacement": "auto", "barAlignment": 0, @@ -76,6 +103,7 @@ "tooltip": false, "viz": false }, + "insertNulls": false, "lineInterpolation": "stepAfter", "lineWidth": 1, "pointSize": 5, @@ -156,7 +184,6 @@ "y": 1 }, "id": 2, - "links": [], "options": { "legend": { "calcs": [ @@ -164,9 +191,11 @@ "max" ], "displayMode": "table", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "multi", "sort": "none" } @@ -175,7 +204,10 @@ "targets": [ { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "hide": false, @@ -208,20 +240,18 @@ } ], "refresh": false, - "schemaVersion": 36, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -240,12 +270,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -264,12 +293,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -293,6 +321,7 @@ "from": "now-6M", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -323,4 +352,4 @@ "uid": "NjtMTFggz", "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/grafana/dashboards/projected-range.json b/grafana/dashboards/projected-range.json index 4414645bbf..19ac772f45 100644 --- a/grafana/dashboards/projected-range.json +++ b/grafana/dashboards/projected-range.json @@ -1,4 +1,25 @@ { + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -11,7 +32,10 @@ "type": "dashboard" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "enable": false, "hide": false, "iconColor": "rgba(255, 96, 96, 1)", @@ -27,6 +51,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, + "id": null, "links": [ { "icon": "dashboard", @@ -70,7 +95,10 @@ "type": "row" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -168,6 +196,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "multi", "sort": "none" } @@ -176,7 +205,10 @@ "targets": [ { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "hide": false, @@ -204,7 +236,10 @@ ] }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -237,7 +272,10 @@ "type": "timeseries" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -336,6 +374,7 @@ "showLegend": true }, "tooltip": { + "maxHeight": 600, "mode": "multi", "sort": "none" } @@ -344,7 +383,10 @@ "targets": [ { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "editorMode": "code", "format": "time_series", "group": [], @@ -390,7 +432,10 @@ ] }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -423,7 +468,10 @@ "type": "timeseries" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -469,8 +517,7 @@ "mode": "absolute", "steps": [ { - "color": "green", - "value": null + "color": "green" }, { "color": "red", @@ -559,7 +606,10 @@ "targets": [ { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "editorMode": "code", "format": "time_series", "group": [], @@ -606,7 +656,10 @@ }, { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "hide": false, @@ -646,12 +699,11 @@ "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -670,12 +722,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "mi", - "value": "mi" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -694,12 +745,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "rated", - "value": "rated" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, @@ -717,12 +767,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "C", - "value": "C" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_temperature from settings limit 1;", "hide": 2, "includeAll": false, @@ -742,7 +791,10 @@ }, { "current": {}, - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -815,6 +867,7 @@ "from": "now-6M", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -845,4 +898,4 @@ "uid": "riqUfXgRz", "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/grafana/dashboards/states.json b/grafana/dashboards/states.json index a9bdca0516..fa23dac62a 100644 --- a/grafana/dashboards/states.json +++ b/grafana/dashboards/states.json @@ -1,4 +1,31 @@ { + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "state-timeline", + "name": "State timeline", + "version": "" + } + ], "annotations": { "list": [ { @@ -22,7 +49,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1642780620514, + "id": null, "links": [ { "icon": "dashboard", @@ -59,7 +86,10 @@ "type": "row" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "Only distinguishes between online, offline and asleep.", "fieldConfig": { "defaults": { @@ -84,7 +114,6 @@ "y": 1 }, "id": 2, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -103,9 +132,11 @@ "fields": "/^time$/", "values": true }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -133,14 +164,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Last state change", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "Only distinguishes between online, offline and asleep.", "fieldConfig": { "defaults": { @@ -165,7 +203,6 @@ "y": 1 }, "id": 6, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -184,9 +221,11 @@ "fields": "/^state$/", "values": true }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -214,14 +253,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Current State", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "based on any data ever recorded.", "fieldConfig": { "defaults": { @@ -258,7 +304,6 @@ "y": 1 }, "id": 8, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -277,9 +322,11 @@ "fields": "", "values": true }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "time_series", @@ -307,14 +354,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "parked (%)", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -322,7 +376,14 @@ }, "custom": { "fillOpacity": 100, - "lineWidth": 0 + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineWidth": 0, + "spanNulls": false }, "mappings": [ { @@ -387,20 +448,23 @@ "h": 7, "w": 24, "x": 0, - "y": 3 + "y": 4 }, "id": 14, "options": { "alignValue": "center", "legend": { "displayMode": "list", - "placement": "bottom" + "placement": "bottom", + "showLegend": true }, "mergeValues": true, "rowHeight": 0.9, "showValue": "auto", "tooltip": { - "mode": "single" + "maxHeight": 600, + "mode": "single", + "sort": "none" } }, "targets": [ @@ -430,7 +494,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "States", @@ -438,20 +506,18 @@ } ], "refresh": false, - "schemaVersion": 36, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -470,12 +536,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -499,6 +564,7 @@ "from": "now-2d", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", diff --git a/grafana/dashboards/statistics.json b/grafana/dashboards/statistics.json index 64af8be63e..94e2791db8 100644 --- a/grafana/dashboards/statistics.json +++ b/grafana/dashboards/statistics.json @@ -1,4 +1,25 @@ { + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + } + ], "annotations": { "list": [ { @@ -21,7 +42,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1642773094880, + "id": null, "links": [ { "icon": "dashboard", @@ -58,14 +79,20 @@ "type": "row" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "", "fieldConfig": { "defaults": { "custom": { "align": "left", - "displayMode": "auto", + "cellOptions": { + "type": "auto" + }, "filterable": false, + "inspect": false, "width": 120 }, "mappings": [], @@ -137,10 +164,6 @@ "id": "unit", "value": "percentunit" }, - { - "id": "custom.displayMode", - "value": "color-text" - }, { "id": "thresholds", "value": { @@ -287,10 +310,6 @@ "id": "displayName", "value": "Temperature" }, - { - "id": "custom.displayMode", - "value": "color-text" - }, { "id": "thresholds", "value": { @@ -460,7 +479,6 @@ ] } } - ] }, { @@ -510,7 +528,9 @@ "id": 2, "maxPerRow": 2, "options": { + "cellHeight": "sm", "footer": { + "countRows": false, "fields": "", "reducer": [ "sum" @@ -526,7 +546,7 @@ } ] }, - "pluginVersion": "10.4.1", + "pluginVersion": "11.0.0", "repeatDirection": "h", "targets": [ { @@ -555,7 +575,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } }, { "format": "table", @@ -581,7 +605,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } }, { "format": "table", @@ -608,7 +636,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "per ${period}", @@ -751,8 +783,8 @@ "indexByName": { "avg_consumption_kwh": 9, "avg_cost_km": 19, - "avg_cost_mi": 20, "avg_cost_kwh": 11, + "avg_cost_mi": 20, "avg_outside_temp_c": 5, "avg_outside_temp_f": 5, "cnt": 6, @@ -775,8 +807,8 @@ "renameByName": { "avg_consumption_kwh": "Avg charged", "avg_cost_km": "Avg cost per km", - "avg_cost_mi": "Avg cost per mi", "avg_cost_kwh": "Avg cost per kWh", + "avg_cost_mi": "Avg cost per mi", "avg_outside_temp_c": "", "cnt": "# drives", "cnt_charges": "# charges", @@ -799,19 +831,17 @@ ], "refresh": false, "schemaVersion": 39, - "style": "dark", "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -830,12 +860,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -855,13 +884,11 @@ "useTags": false }, { - "allValue": null, - "current": { - "selected": false, - "text": "C", - "value": "C" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_temperature from settings limit 1;", "hide": 2, "includeAll": false, @@ -881,7 +908,7 @@ }, { "current": { - "selected": true, + "selected": false, "text": "month", "value": "month" }, @@ -918,12 +945,11 @@ "type": "custom" }, { - "current": { - "selected": false, - "text": "ideal", - "value": "ideal" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, @@ -941,36 +967,11 @@ "useTags": false }, { - "current": { - "selected": false, - - - - - - - - - - - - - - - - - - - - - - - - - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -993,6 +994,7 @@ "from": "now-10y", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -1010,6 +1012,6 @@ "timezone": "browser", "title": "Statistics", "uid": "1EZnXszMk", - "version": 2, + "version": 1, "weekStart": "" -} +} \ No newline at end of file diff --git a/grafana/dashboards/timeline.json b/grafana/dashboards/timeline.json index 5793facf5d..7e884bf89f 100644 --- a/grafana/dashboards/timeline.json +++ b/grafana/dashboards/timeline.json @@ -5,7 +5,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "10.4.2" + "version": "11.0.0" }, { "type": "datasource", @@ -567,7 +567,7 @@ } ] }, - "pluginVersion": "10.4.2", + "pluginVersion": "11.0.0", "targets": [ { "datasource": { @@ -729,7 +729,7 @@ }, { "current": { - "selected": false, + "selected": true, "text": [ "All" ], @@ -873,10 +873,11 @@ "from": "now-7d", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": {}, "timezone": "", "title": "Timeline", "uid": "SUBgwtigz", - "version": 2, + "version": 3, "weekStart": "" } \ No newline at end of file diff --git a/grafana/dashboards/trip.json b/grafana/dashboards/trip.json index b273e0339b..c0b020fbf0 100644 --- a/grafana/dashboards/trip.json +++ b/grafana/dashboards/trip.json @@ -1,4 +1,61 @@ { + "__elements": {}, + "__requires": [ + { + "type": "panel", + "id": "bargauge", + "name": "Bar gauge", + "version": "" + }, + { + "type": "panel", + "id": "geomap", + "name": "Geomap", + "version": "" + }, + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "piechart", + "name": "Pie chart", + "version": "" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "state-timeline", + "name": "State timeline", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -22,7 +79,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, - "iteration": 1656104359102, + "id": null, "links": [ { "icon": "doc", @@ -68,7 +125,10 @@ "type": "row" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -170,10 +230,13 @@ "zoom": 15 } }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "editorMode": "code", "format": "time_series", "group": [], @@ -220,12 +283,14 @@ ] } ], - "transformations": [], "transparent": true, "type": "geomap" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "mappings": [], @@ -282,7 +347,6 @@ "y": 1 }, "id": 10, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -301,9 +365,11 @@ "fields": "", "values": true }, - "textMode": "auto" + "showPercentChange": false, + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -331,13 +397,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -409,7 +482,6 @@ "y": 1 }, "id": 38, - "links": [], "maxDataPoints": 3, "options": { "displayLabels": [ @@ -434,6 +506,7 @@ "values": true }, "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -465,7 +538,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } }, { "format": "time_series", @@ -493,13 +570,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "piechart" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "", "fieldConfig": { "defaults": { @@ -567,7 +651,6 @@ "y": 3 }, "id": 26, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -586,9 +669,11 @@ "fields": "", "values": false }, - "textMode": "value_and_name" + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -616,13 +701,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "mappings": [], @@ -679,7 +771,6 @@ "y": 5 }, "id": 28, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -698,9 +789,11 @@ "fields": "", "values": false }, - "textMode": "value_and_name" + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -728,13 +821,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "", "fieldConfig": { "defaults": { @@ -793,7 +893,6 @@ "y": 7 }, "id": 30, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -812,10 +911,12 @@ "fields": "", "values": true }, + "showPercentChange": false, "text": {}, - "textMode": "auto" + "textMode": "auto", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -843,13 +944,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "", "fieldConfig": { "defaults": { @@ -908,7 +1016,6 @@ "y": 7 }, "id": 32, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -927,9 +1034,11 @@ "fields": "", "values": true }, - "textMode": "value_and_name" + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -957,13 +1066,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "", "fieldConfig": { "defaults": { @@ -999,7 +1115,6 @@ "y": 9 }, "id": 22, - "links": [], "maxDataPoints": 100, "options": { "colorMode": "value", @@ -1018,9 +1133,11 @@ "fields": "", "values": true }, - "textMode": "value_and_name" + "showPercentChange": false, + "textMode": "value_and_name", + "wideLayout": true }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -1048,13 +1165,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "decimals": 1, @@ -1092,8 +1216,10 @@ "id": 40, "options": { "displayMode": "gradient", + "maxVizHeight": 300, "minVizHeight": 10, "minVizWidth": 0, + "namePlacement": "auto", "orientation": "horizontal", "reduceOptions": { "calcs": [ @@ -1103,9 +1229,10 @@ "values": true }, "showUnfilled": false, + "sizing": "auto", "valueMode": "color" }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -1133,7 +1260,11 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } }, { "format": "table", @@ -1162,13 +1293,20 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "type": "bargauge" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "description": "", "fieldConfig": { "defaults": { @@ -1262,6 +1400,7 @@ "rowHeight": 1, "showValue": "never", "tooltip": { + "maxHeight": 600, "mode": "single", "sort": "none" } @@ -1293,14 +1432,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "transparent": true, "type": "state-timeline" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -1622,7 +1768,6 @@ "y": 16 }, "id": 2, - "links": [], "options": { "cellHeight": "sm", "footer": { @@ -1641,11 +1786,14 @@ } ] }, - "pluginVersion": "10.1.2", + "pluginVersion": "11.0.0", "targets": [ { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -1673,11 +1821,13 @@ } ], "title": "Drives", - "transformations": [], "type": "table" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -2121,7 +2271,6 @@ "y": 27 }, "id": 36, - "links": [], "options": { "footer": { "fields": "", @@ -2141,7 +2290,10 @@ "pluginVersion": "8.5.4", "targets": [ { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -2180,7 +2332,10 @@ "type": "table" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -2323,7 +2478,10 @@ "pluginVersion": "8.5.4", "targets": [ { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -2356,7 +2514,10 @@ "type": "timeseries" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -2477,7 +2638,10 @@ "pluginVersion": "8.5.4", "targets": [ { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "time_series", "group": [], "metricColumn": "none", @@ -2511,20 +2675,18 @@ } ], "refresh": "", - "schemaVersion": 38, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -2543,12 +2705,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "C", - "value": "C" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_temperature from settings limit 1;", "hide": 2, "includeAll": false, @@ -2567,12 +2728,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -2591,12 +2751,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "m", - "value": "m" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select case when unit_of_length = 'km' then 'm' when unit_of_length = 'mi' then 'ft' end from settings limit 1;", "hide": 2, "includeAll": false, @@ -2615,12 +2774,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "ideal", - "value": "ideal" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, @@ -2639,12 +2797,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -2663,12 +2820,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "1642593521525", - "value": "1642593521525" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "with last_drives as (select start_date from drives order by start_date desc limit 3)\nselect extract(epoch from min(start_date)) * 1000 from last_drives;", "hide": 2, "includeAll": false, @@ -2691,6 +2847,7 @@ "from": "now/d", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -2721,4 +2878,4 @@ "uid": "FkUpJpQZk", "version": 2, "weekStart": "" -} +} \ No newline at end of file diff --git a/grafana/dashboards/updates.json b/grafana/dashboards/updates.json index 40e8164d45..b63b874c4f 100644 --- a/grafana/dashboards/updates.json +++ b/grafana/dashboards/updates.json @@ -1,4 +1,31 @@ { + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "stat", + "name": "Stat", + "version": "" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + } + ], "annotations": { "list": [ { @@ -22,7 +49,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1643273221821, + "id": null, "links": [ { "icon": "dashboard", @@ -59,7 +86,10 @@ "type": "row" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "mappings": [], @@ -94,9 +124,11 @@ "fields": "", "values": true }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -124,14 +156,21 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Updates", "type": "stat" }, { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "decimals": 1, @@ -168,9 +207,11 @@ "fields": "", "values": true }, - "textMode": "value" + "showPercentChange": false, + "textMode": "value", + "wideLayout": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "format": "table", @@ -198,19 +239,30 @@ "params": [], "type": "macro" } - ] + ], + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + } } ], "title": "Median time between updates", "type": "stat" }, { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "custom": { "align": "auto", - "displayMode": "auto", - "filterable": false + "cellOptions": { + "type": "auto" + }, + "filterable": false, + "inspect": false }, "mappings": [], "thresholds": { @@ -443,9 +495,10 @@ "y": 4 }, "id": 2, - "links": [], "options": { + "cellHeight": "sm", "footer": { + "countRows": false, "fields": "", "reducer": [ "sum" @@ -460,7 +513,7 @@ } ] }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "scroll": true, "showHeader": true, "sort": { @@ -566,7 +619,10 @@ ], "targets": [ { - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -595,25 +651,22 @@ ] } ], - "datasource": "TeslaMate", "title": "Updates", "type": "table" } ], - "schemaVersion": 36, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -632,12 +685,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "ideal", - "value": "ideal" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, @@ -655,12 +707,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -678,12 +729,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -707,6 +757,7 @@ "from": "now-10y", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "10s", diff --git a/grafana/dashboards/vampire-drain.json b/grafana/dashboards/vampire-drain.json index b045e656eb..7d16a3d38f 100644 --- a/grafana/dashboards/vampire-drain.json +++ b/grafana/dashboards/vampire-drain.json @@ -1,4 +1,25 @@ { + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.0.0" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "table", + "name": "Table", + "version": "" + } + ], "annotations": { "list": [ { @@ -21,7 +42,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "iteration": 1642779900099, + "id": null, "links": [ { "icon": "dashboard", @@ -59,6 +80,10 @@ "type": "row" }, { + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "fieldConfig": { "defaults": { "color": { @@ -66,7 +91,10 @@ }, "custom": { "align": "auto", - "displayMode": "auto" + "cellOptions": { + "type": "auto" + }, + "inspect": false }, "mappings": [], "thresholds": { @@ -186,8 +214,10 @@ "value": 1 }, { - "id": "custom.displayMode", - "value": "color-text" + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } }, { "id": "custom.align" @@ -279,8 +309,10 @@ "value": "percentunit" }, { - "id": "custom.displayMode", - "value": "color-text" + "id": "custom.cellOptions", + "value": { + "type": "color-text" + } }, { "id": "custom.align" @@ -504,9 +536,10 @@ "y": 1 }, "id": 2, - "links": [], "options": { + "cellHeight": "sm", "footer": { + "countRows": false, "fields": "", "reducer": [ "sum" @@ -515,11 +548,14 @@ }, "showHeader": true }, - "pluginVersion": "8.3.4", + "pluginVersion": "11.0.0", "targets": [ { "alias": "", - "datasource": "TeslaMate", + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "format": "table", "group": [], "metricColumn": "none", @@ -546,7 +582,6 @@ ] } ], - "datasource": "TeslaMate", "title": "Vampire Drain", "transformations": [ { @@ -559,20 +594,18 @@ "type": "table" } ], - "schemaVersion": 36, - "style": "dark", + "schemaVersion": 39, "tags": [ "tesla" ], "templating": { "list": [ { - "current": { - "selected": false, - "text": "All", - "value": "$__all" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "SELECT name AS __text, id AS __value FROM cars ORDER BY display_priority ASC, name ASC;", "hide": 2, "includeAll": true, @@ -592,7 +625,7 @@ }, { "current": { - "tags": [], + "selected": false, "text": "6", "value": "6" }, @@ -643,12 +676,11 @@ "type": "custom" }, { - "current": { - "selected": false, - "text": "km", - "value": "km" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select unit_of_length from settings limit 1;", "hide": 2, "includeAll": false, @@ -667,12 +699,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "ideal", - "value": "ideal" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select preferred_range from settings limit 1;", "hide": 2, "includeAll": false, @@ -690,12 +721,11 @@ "useTags": false }, { - "current": { - "selected": false, - "text": "http://localhost:4000", - "value": "http://localhost:4000" + "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" }, - "datasource": "TeslaMate", "definition": "select base_url from settings limit 1;", "hide": 2, "includeAll": false, @@ -719,6 +749,7 @@ "from": "now-90d", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", diff --git a/grafana/dashboards/visited.json b/grafana/dashboards/visited.json index 720bd4a565..ed7cea3c5b 100644 --- a/grafana/dashboards/visited.json +++ b/grafana/dashboards/visited.json @@ -11,7 +11,7 @@ "type": "grafana", "id": "grafana", "name": "Grafana", - "version": "10.4.0" + "version": "11.0.0" }, { "type": "datasource", @@ -34,9 +34,9 @@ "type": "grafana", "uid": "-- Grafana --" }, + "definition": "TeslaMate|U2FsdGVkX1/cEWK+8cz7pjEKXtzJnDN7b21ZDXt1MGneFGPWTLqOPtxKmu02mJPLzi/f29I+NBHd3vi0FB8R4Xn0+GtobWDgk6VAVSBTdSNniOKO8i2WPlhRaOsl2+hG7gnZ7wrf1Th2nxR7f1uYCrbwOek0IzkfLzrkjh7gkr6inT6bbDuJqrmogZajLxmAMrQ6V+/vHxBRGiwjJhgiEeq3hM1q2h04JKkNiZ8RHbsF5Cd/xd8Q9u0JVrZzIrtnhM/SFlaApU7RtRMu8CSj1llTX7WEOj6VDZAMSf+XUAanWdk725kEPN9MNu89o2zEq5P3E3cju8IbbBdPzXLV3oVuzD6/tMnxFToIIV1E/BrpF7s2RtNa8+KJJ1PF8xgs6m+/KTD2hy+WsP0636AgObRAmYg7+qotGrgNvpNPdE0EgrB7WHYlV7R/1q66bcq6tCe51X1Un70k+zo+K6AK0o4B1H6IyMlEVuRH/Fz8QVl9aYu2ztd08RbuKJlYVKpkH+pxVETAO9MclYQ90tzE6TfwDZrQZzsAlMenr4s1ZB1OlFXjLjVjnddnUilzO76cqv4yI2THQEuyQ47nuVQ4gUbx02K59vMQhns3C01JOAYokOaSXe66Y7QYdMlk09Lf|aes-256-cbc", "enable": true, "hide": true, - "definition": "TeslaMate|U2FsdGVkX1/cEWK+8cz7pjEKXtzJnDN7b21ZDXt1MGneFGPWTLqOPtxKmu02mJPLzi/f29I+NBHd3vi0FB8R4Xn0+GtobWDgk6VAVSBTdSNniOKO8i2WPlhRaOsl2+hG7gnZ7wrf1Th2nxR7f1uYCrbwOek0IzkfLzrkjh7gkr6inT6bbDuJqrmogZajLxmAMrQ6V+/vHxBRGiwjJhgiEeq3hM1q2h04JKkNiZ8RHbsF5Cd/xd8Q9u0JVrZzIrtnhM/SFlaApU7RtRMu8CSj1llTX7WEOj6VDZAMSf+XUAanWdk725kEPN9MNu89o2zEq5P3E3cju8IbbBdPzXLV3oVuzD6/tMnxFToIIV1E/BrpF7s2RtNa8+KJJ1PF8xgs6m+/KTD2hy+WsP0636AgObRAmYg7+qotGrgNvpNPdE0EgrB7WHYlV7R/1q66bcq6tCe51X1Un70k+zo+K6AK0o4B1H6IyMlEVuRH/Fz8QVl9aYu2ztd08RbuKJlYVKpkH+pxVETAO9MclYQ90tzE6TfwDZrQZzsAlMenr4s1ZB1OlFXjLjVjnddnUilzO76cqv4yI2THQEuyQ47nuVQ4gUbx02K59vMQhns3C01JOAYokOaSXe66Y7QYdMlk09Lf|aes-256-cbc", "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" @@ -46,6 +46,7 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, + "id": null, "links": [ { "icon": "dashboard", @@ -201,7 +202,7 @@ "zoom": 15 } }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { "datasource": { @@ -281,7 +282,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { "datasource": { @@ -427,7 +428,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { "datasource": { @@ -603,7 +604,7 @@ "textMode": "value_and_name", "wideLayout": true }, - "pluginVersion": "10.4.0", + "pluginVersion": "11.0.0", "targets": [ { "datasource": { @@ -714,6 +715,10 @@ }, { "current": {}, + "datasource": { + "type": "grafana-postgresql-datasource", + "uid": "TeslaMate" + }, "definition": "SELECT unit_of_length FROM settings LIMIT 1", "hide": 2, "includeAll": false, @@ -733,6 +738,7 @@ "from": "now-90d", "to": "now" }, + "timeRangeUpdatedDuringEditOrView": false, "timepicker": { "refresh_intervals": [ "5s", @@ -761,6 +767,6 @@ "timezone": "", "title": "Visited", "uid": "RG_DxSmgk", - "version": 12, + "version": 3, "weekStart": "" } \ No newline at end of file