Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

ZMON's EventLog service receives and provides Event Log entries

License

Notifications You must be signed in to change notification settings

hjacobs/zmon-eventlog-service

 
 

Repository files navigation

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'

About

ZMON's EventLog service receives and provides Event Log entries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 65.5%
  • TSQL 30.6%
  • Shell 2.2%
  • Dockerfile 1.7%