-
Start Docker Compose services:
docker compose up influx_db pulsar01
Ensure they are healthy.
-
Create directories for zookeeper and bookeeper to store data
chmod +x create_dirs.sh ./create_dirs.sh
-
Set up the producer application:
cd producer_app python3 -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Start the producer:
python producer.py
-
Start the consumer:
python consumer.py
-
Update the token in the consumer if needed:
- Access InfluxDB admin panel: InfluxDB Admin Panel (username: admin, password: admin123)
- Access Grafana: Grafana (username: admin, password: admin)
- docker exec -it pulsar01 bin/pulsar-admin brokers list standalone
- docker logs pulsar01 --tail 50 -f
- docker exec -it broker /bin/sh
- docker compose logs -f