fix: telegraf topics, mqtt brokers, docker-compose fixes
- Fix MOSQUITTO_HOST (wrong container name) - Fix EMQX_PORT (1885 external -> 1883 internal) - Fix telegraf MQTT topics (city/sensors/#) - Fix BunkerM dynsec JSON - Add kepler.yml Traefik config - Update monitoring script
This commit is contained in:
@@ -1,28 +1,16 @@
|
||||
# Redpanda → InfluxDB Consumer
|
||||
# Lit les topics Redpanda et écrit dans InfluxDB pour Grafana
|
||||
version: "3.8"
|
||||
# DÉSACTIVÉ — Redpanda broker non démarré
|
||||
# Usage: docker compose -f docker-compose.redpanda-consumer.yml up -d
|
||||
|
||||
services:
|
||||
redpanda-consumer:
|
||||
image: python:3.11-slim
|
||||
container_name: smart-city-redpanda-consumer
|
||||
restart: unless-stopped
|
||||
restart: "no"
|
||||
command: >
|
||||
sh -c "pip install requests && python3 /app/consumer.py"
|
||||
volumes:
|
||||
- ./redpanda/consumer.py:/app/consumer.py:ro
|
||||
environment:
|
||||
- INFLUX_URL=http://smart-city-influxdb:8086
|
||||
- INFLUX_TOKEN=my-super-admin-token
|
||||
- INFLUX_ORG=digitribe
|
||||
- INFLUX_BUCKET=iot_data
|
||||
sh -c "echo 'Redpanda consumer désactivé — Redpanda broker non démarré' && sleep infinity"
|
||||
networks:
|
||||
- smartcity-shared
|
||||
healthcheck:
|
||||
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://smart-city-redpanda:9644/public_metrics')"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
networks:
|
||||
smartcity-shared:
|
||||
|
||||
Reference in New Issue
Block a user