feat: activate BunkerM MQTT broker + fix Telegraf

- 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 
This commit is contained in:
Eric FELIXINE
2026-05-25 20:03:55 -04:00
parent 5bbd5a6e5d
commit 943836f8fb
8 changed files with 140 additions and 30 deletions

26
TODO.md
View File

@@ -1,6 +1,6 @@
# Smart City Digital Twin — TODO List
> Dernière mise à jour : 2026-05-26
> Dernière mise à jour : 2026-05-26 22:00
## ✅ Complété
| ID | Tâche |
@@ -18,6 +18,7 @@
| telegraf-fix | Noms containers corrigés + BunkerM désactivé |
| or-pg-fix | Image PostgreSQL changée → timescaledb-ha:pg15 |
| grafana-fix | Dashboard "no data" corrigé — datasource + requêtes Flux |
| grafana-v4 | Dashboard v4 poussé avec 14 panels, données confirmées ✅ |
## 🔴 En cours
| ID | Tâche | Notes |
@@ -31,22 +32,24 @@
| p4-ditto | Ditto.digitribe.fr | MongoDB localhost hardcodé |
| p3-kepler | KeplerGL | Image Docker incomplète |
## ⏳ En attente
| ID | Tâche |
|----|-------|
| p1-bunkerm-telegraf | Réactiver BunkerM dans Telegraf (port 1883 ou 1900 ?) |
| p1-contexus-60 | Configurer les 60 devices Contexus |
| p3-analyse | Analyse: GeoMesa + KeplerGL |
| p1-ngsi | NGSI-LD: validation pipeline (basse priorité) |
| p0-chirpstack | ChirpStack: login API gRPC-REST |
| p1-thingsboard | Relayer ThingsBoard (si CPU dispo) |
## ⏳ En attente (par priorité)
| ID | Tâche | Priorité |
|----|-------|----------|
| p1-contexus-60 | Configurer les 60 devices Contexus | Haute |
| p1-bunkerm-telegraf | Réactiver BunkerM dans Telegraf (port 1883 vs 1900) | Moyenne |
| p1-grafana-maps | Ajouter carte Grafana avec points capteurs GPS | Moyenne |
| p1-thingsboard | Relayer ThingsBoard (si CPU dispo) | Moyenne |
| p3-analyse | Analyse: GeoMesa + KeplerGL | Basse |
| p1-ngsi | NGSI-LD: validation pipeline | Basse |
| p0-chirpstack | ChirpStack: login API gRPC-REST | Basse |
## 📝 Notes 2026-05-26
- **Grafana** : Dashboard smartcity-martinique-complete v3 — données confirmées (PM2.5, temp, traffic, etc.)
- **Grafana** : Dashboard smartcity-martinique-complete v4 — données confirmées
- **Pipeline** : Simulateur → EMQX/Mosquitto → Telegraf → InfluxDB → Grafana ✅
- **InfluxDB** : bucket `smartcity`, measurement `mqtt_consumer`, tag `topic` pour le type
- **OpenRemote** : Abandon pour l'instant, l'utilisateur va recloner le répertoire
- **Keycloak** : Recréé manuellement (ancien supprimé par docker-compose up échoué)
- **Grafana provisioning** : smart-city-dashboards.json déplacé en .bak pour éviter écrasement
## Credentials
- **Contexus**: iotevadmin / Digitribe972
@@ -55,3 +58,4 @@
- **Redis Contexus**: Digitribe972
- **Telegraf InfluxDB**: token=my-super-token, org=digitribe, bucket=smartcity
- **Grafana**: admin / Digitribe972
- **InfluxDB**: admin / Digitribe972