Git Product home page Git Product logo

elastalert-docker's Introduction

Welcome to Elastalert Docker & Kubernetes! ๐Ÿณ โ›ต

Build Status

This repository was created in order to make easier to integrate Elastalert on Docker and Kubernetes.

First Steps

  • Download Docker : Link
  • Download Kubernetes: Link
  • Elastalert doc: Link
  • Elastalert on DockerHub: Link

Deployment on Docker

First of all, it is necessary to create config and rules directory. Inside these directories, you have to copy/create config files. An example:

/home/rdrgporto/elastalert# tree
.
โ”œโ”€โ”€ config
โ”‚   โ”œโ”€โ”€ elastalert_config.yaml
โ”‚   โ””โ”€โ”€ elastalert_supervisord.conf
โ””โ”€โ”€ rules
โ””โ”€โ”€ example-rule.yaml
2 directories, 3 files
docker run -d \
-v `pwd`/config/:/opt/elastalert/config/ \
-v `pwd`/rules:/opt/elastalert/rules \
--name elastalert-docker rdrg/elastalert-docker

By default, the timezone is Europe/Madrid, if you want to change it:

docker run -d -e "TZ=Europe/Paris" \
-v `pwd`/config/:/opt/elastalert/config/ \
-v `pwd`/rules:/opt/elastalert/rules \
--name elastalert-docker rdrg/elastalert-docker

Create/Edit Dockerfile

If you want to edit the image, for example, change to a new version, install a new package, and so on, you can follow this guide:

Download repository:

git clone https://github.com/rdrgporto/elastalert-docker.git

Edit Dockerfile with your favorite text editor and create image:

docker build -t john-doe/elastalert-docker

Run container:

docker run --name elastalert-docker-test john-doe/elastalert-docker

Deployment on Kubernetes

Before deploying Elastalert on Kubernetes, it is necessary to modify some files:

  • 03a-elastalert-elastconfig-cm.yml (set your Elasticsearch server)
  • 03b-elastalert-logstash-cm.yml (set your index, by default is Logstash index)

Download repository:

git clone git clone https://github.com/rdrgporto/elastalert-docker.git

Deploy Elastalert:

cd elastalert-docker
kubectl apply -f kubernetes/

elastalert-docker's People

Contributors

karthikeayan avatar rdrgporto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.