fix: Grafana dashboard 'no data' — datasource + Flux queries

- Fix datasource: bucket=smartcity, token=my-super-token, org=digitribe
- Fix dashboard queries: filter by topic tag instead of _measurement
  (all data in measurement 'mqtt_consumer', type in tag 'topic')
- Fix field names: temperature_c→temperature_celsius, luminosity→brightness_lux
- Update dashboard to v3 with 15 panels (airquality, traffic, parking, weather, noise, light)
- Update TODO.md and session_resume

Tested: PM2.5 , Temperature , Vehicle Count  via Grafana API
This commit is contained in:
Eric FELIXINE
2026-05-25 16:39:50 -04:00
parent 6d1d9c8620
commit 5bbd5a6e5d
6 changed files with 378 additions and 122 deletions

View File

@@ -1,9 +1,8 @@
# Grafana datasources - Smart City Digital Twin Martinique
# Each datasource is editable and uses the container DNS name in smartcity-shared network
apiVersion: 1
datasources:
# ── InfluxDB v2 (time-series IoT data) ──────────────────────────────────────
# InfluxDB v2 (time-series IoT data)
- name: InfluxDB-v2
type: influxdb
access: proxy
@@ -13,12 +12,12 @@ datasources:
jsonData:
version: Flux
organization: digitribe
defaultBucket: iot_data
defaultBucket: smartcity
tlsSkipVerify: true
secureJsonData:
token: my-super-secret-admin-token
token: my-super-token
# ── FIWARE Orion-LD (NGSI-LD context broker) ────────────────────────────────
# Requires grafana-simple-json-datasource plugin
# FIWARE Orion-LD
- name: FIWARE Orion
type: grafana-simple-json-datasource
access: proxy
@@ -28,8 +27,7 @@ datasources:
queryURLTemplate: "/ngsi-ld/v1/entities?type={{type}}"
method: GET
# ── GeoServer WMS (spatial data) ────────────────────────────────────────────
# GeoServer is an external service reachable via its container name
# GeoServer WMS
- name: GeoServer WMS
type: grafana-simple-json-datasource
access: proxy
@@ -39,8 +37,7 @@ datasources:
queryURLTemplate: "/geoserver/wfs?service=WFS&version=2.0&request=GetFeature&typeName={{type}}"
method: GET
# ── FROST-Server (SensorThings API) ──────────────────────────────────────────
# Requires grafana-simple-json-datasource plugin
# FROST-Server
- name: FROST-Server
type: grafana-simple-json-datasource
access: proxy