Make sure the scripts are run from the home directory of the repository.
git clone https://github.com/kmolima/kpi_engine.git
cd kpi_engine
After clonning this repository and changing the working directory into the cloned folder add execution permission to the scripts.
chmod +x mvnw ./scripts/*
To replicate the case study setup please run the script below from the home directory of the repository.
Note: If you need elevated privileges to run docker, please run the script below accordingly (e.g. add sudo
).
./scripts/setup.sh
Dependency: Java 11
./mvnw clean package
Run the KPI Engine to translate the Models and interact with the HTTP Query API to fullfill the KPIs (uses the 3 data-related KPI from OceanOps):
./scripts/run_http_service.sh
To configure a specific KPI model file add as the first argument:
./scripts/run_http_service.sh models/test/near_factor_kpi.model
Launch the Expression Browser of the Prometheus toolkit to visualize the KPI metrics and results (uses the 3 data-related KPI from OceanOps):
./scripts/launch_browser.sh
To configure a specific KPI model file add as the first argument:
./scripts/launch_browser.sh models/test/near_factor_kpi.model
Deletes the dependent repositories, build folder, and docker container images.
Note: If you need elevated privileges to run docker, please run the script bellow accordingly (e.g. add sudo
)
./scripts/clean.sh
./mvnw clean