mirror of
https://github.com/vimagick/dockerfiles
synced 2024-06-25 00:08:49 +00:00
update elastalert
This commit is contained in:
parent
e8c11ce09d
commit
65a719f4d0
@ -1,7 +1,10 @@
|
|||||||
ElastAlert
|
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
|
```bash
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
@ -9,5 +12,9 @@ $ docker-compose exec elastalert sh
|
|||||||
>>> cd /opt/elastalert/rules
|
>>> cd /opt/elastalert/rules
|
||||||
>>> elastalert-test-rule xxx.yaml
|
>>> elastalert-test-rule xxx.yaml
|
||||||
>>> exit
|
>>> 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:
|
elastalert:
|
||||||
image: bitsensor/elastalert
|
image: bitsensor/elastalert:2.0.0
|
||||||
ports:
|
ports:
|
||||||
- "3030:3030"
|
- "3030:3030"
|
||||||
|
- "3333:3333"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/config.yaml:/opt/elastalert/config.yaml
|
- ./data/config.yaml:/opt/elastalert/config.yaml
|
||||||
- ./data/rules:/opt/elastalert/rules
|
- ./data/rules:/opt/elastalert/rules
|
||||||
environment:
|
|
||||||
- ES_HOST=elasticsearch
|
|
||||||
- ES_PORT=9200
|
|
||||||
external_links:
|
external_links:
|
||||||
- elk_elasticsearch_1:elasticsearch
|
- elk_elasticsearch_1:elasticsearch
|
||||||
|
# extra_hosts:
|
||||||
|
# - elasticsearch:1.2.3.4
|
||||||
restart: always
|
restart: always
|
||||||
|
Loading…
Reference in New Issue
Block a user