Ingestion Service goal is to move data from Kafka to InfluxDB. This service moves raw OR rolledup metrics data based on spring profile in use, based on profiles.
Install docker. Once done with that, you can use test-infrastructure repository to install and run Kafka, InfluxDB and Redis. Please follow instruction from that repository to install them. Ingestion Service needs Kafka and InfluxDB only. Though ingestion-service depends on tenant-routing-service, we don't need to run the service for development setup. Use development spring profile for development work. When you are using this profile, tenant-routing-service is stubbed to return specific routing information.
To run or test ingestion-service locally:
- Get repo
ceres-test-data-generator - Go to
ceres-test-data-generatorfolder locally - Build repo project, i.e.
mvn clean install - Run
java -jar target/test-data-generator-0.0.1-SNAPSHOT.jarThis will create raw test data into Kafka.
As defined in src/main/resources/application.properties
Moves raw metrics data.
Moves rolled-up data.
The profile to use in development.
-
make sure containers from
test-infrastructureare running. Make sure you ran this ->docker-compose up -d -
make sure in
test-data-generatoryou are running following command on the terminal:java -jar target/test-data-generator-0.0.1-SNAPSHOT.jar
Now, you can run ingestion-service using IntelliJ
or java -Dspring.profiles.active=raw-data-consumer,development -DTEST_KAFKA_BOOTSTRAP_SERVERS=localhost:9092 -jar target/ingestion-service-0.0.1-SNAPSHOT.jar