A docker project of telemetry system using Snowplow and logstash.
More details in wiki
Docker and Docker Compose required
- Download this repository
git clone https://github.com/GabrielXia/telemetry.git
- Change to
docker
directorycd telemetry/docker
- Build
docker-compose build
- Start
docker-compose up
- End
docker-compose down
Note Don't forget to docker-compose down
to delete all the docker containers! Or there will be issues like in iglu
uses the ancient container and doesn't set up correctlly.
- Clone repository tracker8:
git clone https://github.com/GabrielXia/tracker8.git
- Import as a gradle project
- run
tracker8/src/main/java/LogstashTest.java
which will send error log to the telemetry system
- Clone repository tracker8:
git clone https://github.com/GabrielXia/tracker8.git
- Import as a gradle project
- run
tracker8/src/main/java/trackerMain.java
which will send fake metric to the telemetry system - You can using snowplow-mini ui: go to http://localhost:80
Example events
page, and press the buttons
- using
curl 'localhost:9200/_cat/indices?v'
to see the indexes in Elasticsearch - Go to kibana page: http://localhost:5601. You might have to firstly configure the index pattern
- go to
Settings
page, chooseIndex contains time-based events
- In
Index name or pattern
, enterlogstash-*
then inTime-field name
choosetimestamp
to visualise log data - In
Index name or pattern
, entergood
then inTime-field name
choosecollector_tstamp
to visualise good metric data - In
Index name or pattern
, enterbad
then inTime-field name
choosefailure_tstamp
to visualise bad metric data
- go to
If you found problems, don't hesitate to leave an issue