This repo contains the haystack integration with adaptive-alerting and alert-manager to store anomalies generated by adaptive-alerting and provide an interface for subscription management for alerting.
Use the following to clone the repo
- git clone git@github.com:ExpediaDotCom/haystack-alerting.git .
- Make sure you have Java 1.8
- Make sure you have maven 3.3.9 or higher
- Make sure you have docker 1.13 or higher
Note : For mac users you can download docker for mac to set you up for the last two steps.
For a full build, including unit tests and integration tests, docker image build, you can run -
make all
- Install docker using Docker Tools or native docker if on mac
- Verify if docker-compose is installed by running following command else install it.
docker-compose
- Add the following entries in
/etc/hosts
:
127.0.0.1 kafkasvc
127.0.0.1 wiremock
127.0.0.1 elasticsearch
127.0.0.1 zookeeper
- Build storage backend to run integration test for
anomaly-store
make build_storage_backends
Run the build and integration tests for individual components with
make alert-api
&&
make anomaly_store