ZMON's EventLog service receives and provides Event Log entries
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.mvn/wrapper
database/eventlog
src/main
.gitignore
.travis.yml
.zappr.yaml
Dockerfile
LICENSE
MAINTAINERS
README.rst
create_squashed.sh
delivery.yaml
mvnw
pom.xml

README.rst

ZMON EventLog Service

OpenTracing enabled

Create database schema:

docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres
psql -h localhost -U postgres -c 'CREATE DATABASE local_eventlog_db;'
psql -h localhost -U postgres -d local_eventlog_db -f database/eventlog/00_create_schema.sql

Build docker image:

$ ./mvnw clean install
$ docker build -t zmon-eventlog-service .

Run with PostgreSQL:

java -jar target/zmon-eventlog-service-1.0-SNAPSHOT.jar

Create Event:

curl -X POST http://localhost:8080/events \
     -d "[{\"typeId\":212993, \"time\":\"2014-01-01T20:00:00.000\",\"attributes\":{\"alertId\":1,\"entity\":\"elsn01:5827\"}}]" \
     -H "Content-Type: application/json"

Read Event:

curl 'http://localhost:8080/events?types=212993&key=alertId&value=1&from=0'