diff --git a/grafana/P1-metergegevens.json b/grafana/P1-metergegevens.json index fe68b3a..95d883f 100644 --- a/grafana/P1-metergegevens.json +++ b/grafana/P1-metergegevens.json @@ -1,4 +1,35 @@ { + "__inputs": [ + { + "name": "DS_P1", + "label": "p1", + "description": "", + "type": "datasource", + "pluginId": "grafana-postgresql-datasource", + "pluginName": "PostgreSQL" + } + ], + "__elements": {}, + "__requires": [ + { + "type": "grafana", + "id": "grafana", + "name": "Grafana", + "version": "11.1.1" + }, + { + "type": "datasource", + "id": "grafana-postgresql-datasource", + "name": "PostgreSQL", + "version": "1.0.0" + }, + { + "type": "panel", + "id": "timeseries", + "name": "Time series", + "version": "" + } + ], "annotations": { "list": [ { @@ -18,14 +49,14 @@ "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 0, - "id": 4, + "id": null, "links": [], "liveNow": false, "panels": [ { "datasource": { "type": "grafana-postgresql-datasource", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "uid": "${DS_P1}" }, "fieldConfig": { "defaults": { @@ -110,8 +141,8 @@ "targets": [ { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "editorMode": "code", "format": "table", @@ -144,7 +175,7 @@ { "datasource": { "type": "grafana-postgresql-datasource", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "uid": "${DS_P1}" }, "fieldConfig": { "defaults": { @@ -227,8 +258,8 @@ "targets": [ { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "editorMode": "code", "format": "table", @@ -261,7 +292,7 @@ { "datasource": { "type": "grafana-postgresql-datasource", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "uid": "${DS_P1}" }, "description": "First + Last = sinds 0, Range = huidige tijdsperiode.", "fieldConfig": { @@ -345,8 +376,8 @@ "targets": [ { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "editorMode": "code", "format": "table", @@ -378,8 +409,8 @@ }, { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "description": "Min: 216,2V. Max: 253V. (-6% tot +10%)", "fieldConfig": { @@ -464,8 +495,8 @@ "targets": [ { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "editorMode": "code", "format": "table", @@ -497,8 +528,8 @@ }, { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "description": "Hoofdaansluiting: 3*25A", "fieldConfig": { @@ -583,8 +614,8 @@ "targets": [ { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "editorMode": "code", "format": "table", @@ -617,7 +648,7 @@ { "datasource": { "type": "grafana-postgresql-datasource", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "uid": "${DS_P1}" }, "fieldConfig": { "defaults": { @@ -699,8 +730,8 @@ "targets": [ { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "editorMode": "code", "format": "table", @@ -732,7 +763,7 @@ { "datasource": { "type": "grafana-postgresql-datasource", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "uid": "${DS_P1}" }, "description": "1L = 1 dm^3 dus 1kL = 1m^3. \nRange = verbruik in geselecteerde periode.", "fieldConfig": { @@ -821,8 +852,8 @@ "targets": [ { "datasource": { - "type": "postgres", - "uid": "e2a4c5ce-511e-4a7d-acb7-fcbb79b230bf" + "type": "grafana-postgresql-datasource", + "uid": "${DS_P1}" }, "editorMode": "code", "format": "table", @@ -859,8 +890,8 @@ "list": [] }, "time": { - "from": "now-2d/d", - "to": "now-2d/d" + "from": "now/d", + "to": "now" }, "timepicker": {}, "timezone": "",