This application integrates a Java-based system with InfluxDB, Kafka, and Grafana to process and visualize data. Kafka serves as the messaging backbone, enabling data exchange between different components, while InfluxDB stores time-series data for visualization in Grafana.
- Java JDK (v21 preferably)
- Docker (to run Kafka, InfluxDB, and Grafana images)
- Git
git clone https://github.com/ilias-stack/Transactions-Live-Viewer.git
cd Transactions-Live-Viewer
change the token value inside the src/main/resources/token.txt
directory and paste your InfluxDB token into it:
echo "your-influxdb-token" > src/main/resources/token.txt
Additionally, ensure the same token is used in the Grafana data source setup to access InfluxDB.
Start the required services (Kafka, InfluxDB, and Grafana) using Docker Compose:
docker-compose up -d
Ensure the containers are running:
docker ps
Compile and run the Java application:
javac -d bin src/**/*.java
java -cp bin Main
- Open Grafana in your browser at
http://localhost:3000
. - Login with the default credentials:
- Username:
admin
- Password:
admin123
- Username:
- Add a new data source:
- Select InfluxDB.
- Set the URL to
http://influxdb:8086
. - Use the token from
src/main/resources/token.txt
for authentication.