Skip to content

Commit 67a0d03

Browse files
author
Khanh Nguyen
committed
Updated README and Dockerfile for elastalert_module support
1 parent b3167d6 commit 67a0d03

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ RUN npm install --production --quiet
1919
COPY config/elastalert.yaml /opt/elastalert/config.yaml
2020
COPY config/config.json config/config.json
2121
COPY rule_templates/ /opt/elastalert/rule_templates
22+
COPY elastalert_modules/ /opt/elastalert/elastalert_modules
2223

2324
ENTRYPOINT ["npm", "start"]

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ docker run -d -p 3030:3030 \
1818
-v `pwd`/config/config.json:/opt/elastalert-server/config/config.json \
1919
-v `pwd`/rules:/opt/elastalert/rules \
2020
-v `pwd`/rule_templates:/opt/elastalert/rule_templates \
21+
-v `pwd`/elastalert_modules:/opt/elastalert/elastalert_modules \
2122
--net="host" \
2223
--name elastalert elastalert:latest
2324
```
@@ -29,13 +30,16 @@ docker run -d -p 3030:3030 \
2930
-v (pwd)/config/config.json:/opt/elastalert-server/config/config.json \
3031
-v (pwd)/rules:/opt/elastalert/rules \
3132
-v (pwd)/rule_templates:/opt/elastalert/rule_templates \
33+
-v (pwd)/elastalert_modules:/opt/elastalert/elastalert_modules \
3234
--net="host" \
3335
--name elastalert elastalert:latest
3436
```
3537
### Configuration
3638
#### ElastAlert parameters
3739
ElastAlert supports additional arguments, that can be passed in the `config.json` file. An example is given in `config/config-historic-data-example.json`.
3840

41+
42+
3943
## Installation using npm and manual ElastAlert setup
4044

4145
### Requirements

0 commit comments

Comments
 (0)