- BunkerM: recreated with port 1883 (external) -> 1900 (internal) - BunkerM: disabled dynsec plugin, using password_file auth (bunker/bunker) - Simulator: ENABLE_BUNKER=1, BUNKERM_PORT=1900 - Telegraf: reactivated BunkerM consumer on port 1900 - Telegraf: recreated container (3 MQTT consumers connected) - Grafana: dashboard v4 with corrected Flux queries - Grafana: datasource fixed (bucket=smartcity, token=my-super-token) Verified: - Simulator publishes to EMQX ✅, Mosquitto ✅, BunkerM ✅ - Telegraf receives from all 3 brokers ✅ - InfluxDB has data from all brokers ✅ - Grafana dashboard displays data ✅
58 lines
2.2 KiB
Markdown
58 lines
2.2 KiB
Markdown
# Snapshot 2026-05-26 — Smart City Digital Twin Martinique
|
|
|
|
## État des services
|
|
|
|
### Pipeline de données ✅ FONCTIONNEL
|
|
```
|
|
Simulateur (60 capteurs) → EMQX + Mosquitto → Telegraf → InfluxDB → Grafana
|
|
```
|
|
|
|
### Containers UP
|
|
| Container | Status | Notes |
|
|
|-----------|--------|-------|
|
|
| smart-city-simulator | ✅ Up 2j | 60 capteurs, MQTT OK |
|
|
| smart-city-telegraf | ✅ Up | Connecté EMQX + Mosquitto |
|
|
| smart-city-influxdb | ✅ Up healthy | Bucket `smartcity` with data |
|
|
| smart-city-grafana | ✅ Up | Dashboard v3, datasource corrigé |
|
|
| openremote-postgresql | ✅ Up healthy | timescaledb-ha:pg15 |
|
|
| openremote-keycloak | ✅ Up | Recréé manuellement |
|
|
| openremote-manager | ❌ Crash loop | Flyway corrigé mais PG recréé |
|
|
| contexus-app | ⚠️ Unhealthy | Postgres/Redis OK |
|
|
| contexus-postgres | ✅ Up healthy | |
|
|
| contexus-redis | ✅ Up healthy | |
|
|
|
|
### Containers DOWN (intentionnel pour CPU)
|
|
- ThingsBoard, Pulsar, Redpanda, FROST, Stellio, Orion-LD
|
|
|
|
## Données InfluxDB confirmées
|
|
- Bucket: `smartcity`
|
|
- Measurement: `mqtt_consumer`
|
|
- Tag `topic`: `smartcity/{type}/{id}` (ex: `smartcity/airquality/1`)
|
|
- Types: airquality(20), parking(20), traffic(10), weather(10), light(5), noise(5)
|
|
|
|
## Grafana Dashboard
|
|
- UID: `smartcity-martinique-complete`
|
|
- URL: https://grafana.digitribe.fr/d/smartcity-martinique-complete/smart-city-digital-twin-martinique-complet
|
|
- Version: 3 (15 panels, requêtes Flux corrigées)
|
|
- Datasource: InfluxDB-SmartCity-Correct (uid: dd1bfc24-...)
|
|
|
|
## Fichiers modifiés cette session
|
|
- `grafana-datasources.yml`
|
|
- `grafana-dashboard-smartcity.json`
|
|
- `grafana/provisioning/dashboards/smart-city-dashboards.json`
|
|
- `grafana/provisioning/datasources/datasources.yml`
|
|
- `openremote/docker-compose.yml` (OR_SETUP_TYPE: "default")
|
|
- `TODO.md` (home + projet)
|
|
- `session_resume_2026-05-26.md` (nouveau)
|
|
|
|
## Commit
|
|
- `5bbd5a6` — "fix: Grafana dashboard 'no data' — datasource + Flux queries"
|
|
- Push Gitea: ❌ (502 Bad Gateway)
|
|
|
|
## Prochaines étapes
|
|
1. Recloner le répertoire (décision utilisateur)
|
|
2. Relancer OpenRemote après reclonage
|
|
3. Push Gitea quand le serveur sera accessible
|
|
4. Configurer les 60 devices Contexus
|
|
5. Activer BunkerM dans Telegraf
|