1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update elastalert

This commit is contained in:
kev 2019-07-17 11:56:47 +08:00
parent e8c11ce09d
commit 65a719f4d0
2 changed files with 13 additions and 6 deletions

@ -1,7 +1,10 @@
ElastAlert
==========
http://elastalert.readthedocs.io/en/latest/
[ElastAlert][1] is a simple framework for alerting on anomalies, spikes, or other
patterns of interest from data in Elasticsearch.
## up and running
```bash
$ docker-compose up -d
@ -9,5 +12,9 @@ $ docker-compose exec elastalert sh
>>> cd /opt/elastalert/rules
>>> elastalert-test-rule xxx.yaml
>>> exit
$ docker-compose restart
```
> ElastAlert will also load new rules, stop running missing rules, and restart
> modified rules as the files in this folder change.
[1]: http://elastalert.readthedocs.io/en/latest/

@ -1,13 +1,13 @@
elastalert:
image: bitsensor/elastalert
image: bitsensor/elastalert:2.0.0
ports:
- "3030:3030"
- "3333:3333"
volumes:
- ./data/config.yaml:/opt/elastalert/config.yaml
- ./data/rules:/opt/elastalert/rules
environment:
- ES_HOST=elasticsearch
- ES_PORT=9200
external_links:
- elk_elasticsearch_1:elasticsearch
# extra_hosts:
# - elasticsearch:1.2.3.4
restart: always