Adaptive Alerting Detector Build Python Library
pip install git+https://github.com/ExpediaDotCom/adaptive-alerting-detector-build.git#egg=adaptive-alerting-detector-build
# may also be passed when creating an instance of DetectorClient
MODEL_SERVICE_URL=http://modelservice
MODEL_SERVICE_USER=awesome_user
# optional, default=INFO
LOG_LEVEL=DEBUG
# Load metric configuration Metric(config, datasource_config, optional: model_service_url)
metric = Metric({"tags": {"app": "myApplication", "type": "REQUEST_COUNT", "metric": "request_count"}}, {"url": "http://graphite"})
# Get detectors assocated to the metric
metric.detectors
# Build detectors for a metric
metric.build_detectors()
$ brew install pipenv
$ pipenv install
$ pipenv run setup.py
$ adaptive-alerting -h
$ brew install pipenv
$ make install
$ make test
(See https://realpython.com/pipenv-guide/ for more info.)
$ pipenv shell
$ make build