Hello
Im trying to add forwarding events to Kafka but looks that doesn't work. I don't see any logs about connection problem and events aren't pushed to Kafka. I've configured events with web channel and on website I'm getting events with Websocket.
I'm using configuration with env variables. Env variables for DB works well and Traccar using Postgresql.
traccar:
image: ghcr.io/my-project/traccar:${IMAGE_TAG:-latest}
container_name: traccar
restart: unless-stopped
depends_on:
traccar_postgres:
condition: service_healthy
environment:
- CONFIG_USE_ENVIRONMENT_VARIABLES=true
- DATABASE_DRIVER=org.postgresql.Driver
- DATABASE_URL=jdbc:postgresql://traccar_postgres:5432/${TRACCAR_DATABASE_NAME}
- DATABASE_USER=${TRACCAR_DATABASE_USERNAME}
- DATABASE_PASSWORD=${TRACCAR_DATABASE_PASSWORD}
- EVENT_FORWARD_ENABLE=true
- EVENT_FORWARD_TYPE=kafka
- EVENT_FORWARD_EXCHANGE=traccar
- EVENT_FORWARD_TOPIC=events
- EVENT_FORWARD_URL=kafka:9092
ports:
- 5000-5200:5000-5200
- 5000-5200:5000-5200/udp
Maybe I forgot about some other configuration?
The configuration looks correct.
Hello
Im trying to add forwarding events to Kafka but looks that doesn't work. I don't see any logs about connection problem and events aren't pushed to Kafka. I've configured events with web channel and on website I'm getting events with Websocket.
I'm using configuration with env variables. Env variables for DB works well and Traccar using Postgresql.
Maybe I forgot about some other configuration?