mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-02-03 13:21:49 +02:00
update elastalert
This commit is contained in:
parent
e8c11ce09d
commit
65a719f4d0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user