Fix Grafana dashboard datasource, add Grid Singularity skill

- Fix PostgreSQL datasource uid in Grafana dashboard
- Update datasource to point to FlexMeasures DB (flexmeasures-db:5432)
- Dashboard now shows real data from Cariflex simulator
- Add Grid Singularity skill (gsy-e, gsy-framework, gsy-e-sdk)
This commit is contained in:
Eric F
2026-06-08 12:08:29 -04:00
parent 23ab00cf64
commit 8127d51ae7
3 changed files with 106 additions and 7 deletions

View File

@@ -13,7 +13,7 @@
"title": "Production PV (kW) - 10 panneaux",
"type": "timeseries",
"gridPos": {"h": 8, "w": 12, "x": 0, "y": 0},
"datasource": {"type": "postgres", "uid": "31"},
"datasource": {"type": "postgres", "uid": "a9b60854-60c5-4c86-bb0b-d98852df0c89"},
"targets": [{
"rawSql": "SELECT event_start as time, SUM(event_value) as power_kw FROM timed_belief WHERE sensor_id BETWEEN 41 AND 50 AND event_start > NOW() - INTERVAL '24 hours' GROUP BY event_start ORDER BY event_start",
"refId": "A"
@@ -25,7 +25,7 @@
"title": "Consommation Bornes VE (kW) - 10 bornes",
"type": "timeseries",
"gridPos": {"h": 8, "w": 12, "x": 12, "y": 0},
"datasource": {"type": "postgres", "uid": "31"},
"datasource": {"type": "postgres", "uid": "a9b60854-60c5-4c86-bb0b-d98852df0c89"},
"targets": [{
"rawSql": "SELECT event_start as time, SUM(event_value) as power_kw FROM timed_belief WHERE sensor_id BETWEEN 61 AND 70 AND event_start > NOW() - INTERVAL '24 hours' GROUP BY event_start ORDER BY event_start",
"refId": "A"
@@ -37,7 +37,7 @@
"title": "Batteries - État de Charge (kWh)",
"type": "timeseries",
"gridPos": {"h": 8, "w": 8, "x": 0, "y": 8},
"datasource": {"type": "postgres", "uid": "31"},
"datasource": {"type": "postgres", "uid": "a9b60854-60c5-4c86-bb0b-d98852df0c89"},
"targets": [{
"rawSql": "SELECT event_start as time, AVG(event_value) as soc_kwh FROM timed_belief WHERE sensor_id BETWEEN 51 AND 60 AND event_start > NOW() - INTERVAL '24 hours' GROUP BY event_start ORDER BY event_start",
"refId": "A"
@@ -49,7 +49,7 @@
"title": "VE V2G - État de Charge (kWh)",
"type": "timeseries",
"gridPos": {"h": 8, "w": 8, "x": 8, "y": 8},
"datasource": {"type": "postgres", "uid": "31"},
"datasource": {"type": "postgres", "uid": "a9b60854-60c5-4c86-bb0b-d98852df0c89"},
"targets": [{
"rawSql": "SELECT event_start as time, AVG(event_value) as soc_kwh FROM timed_belief WHERE sensor_id BETWEEN 71 AND 80 AND event_start > NOW() - INTERVAL '24 hours' GROUP BY event_start ORDER BY event_start",
"refId": "A"
@@ -61,7 +61,7 @@
"title": "Flexibilité Totale (kW)",
"type": "stat",
"gridPos": {"h": 8, "w": 8, "x": 16, "y": 8},
"datasource": {"type": "postgres", "uid": "31"},
"datasource": {"type": "postgres", "uid": "a9b60854-60c5-4c86-bb0b-d98852df0c89"},
"targets": [{
"rawSql": "SELECT SUM(event_value) as flex_kw FROM timed_belief WHERE sensor_id BETWEEN 51 AND 80 AND event_start > NOW() - INTERVAL '1 hour' GROUP BY sensor_id ORDER BY event_start DESC LIMIT 1",
"refId": "A"
@@ -73,7 +73,7 @@
"title": "Carte des Actifs Cariflex",
"type": "geomap",
"gridPos": {"h": 10, "w": 24, "x": 0, "y": 16},
"datasource": {"type": "postgres", "uid": "31"},
"datasource": {"type": "postgres", "uid": "a9b60854-60c5-4c86-bb0b-d98852df0c89"},
"targets": [{
"rawSql": "SELECT g.name, g.latitude, g.longitude, gt.name as type FROM generic_asset g JOIN generic_asset_type gt ON g.generic_asset_type_id = gt.id ORDER BY gt.id, g.id",
"refId": "A"