Augitne.com specific tools for dealing with metrics and logs transformation for ElasticSearch
/Kibana
.
Using Golang
because Logstash
takes too much resources and golang
can download/parse/publish logs in parallel.
- Install docker
- Install glide
- Download dependencies:
glide install
- Run
scripts/build.sh
- Check results in
bin
folder
Assuming docker
, docker-compose
installed and vendor
folder is populated by glide install
.
version: "2"
services:
auginte.dev.gologs:
image: golang:1.7.0
volumes:
- ./:/go/src/github.com/Auginte/go-monitoring/
- ./scripts/raw-build.sh:/custom/raw-build.sh
- ./bin:/go/bin
command: /custom/raw-build.sh
Assuming docker-compose.yml
file is in current directory (otherwise updates volumes
section)
- Install go 1.7
- Install glide
- clone this project into
$GOPATH/src/github.com/Auginte/go-monitoring/
- Download dependencies:
glide install
- Run from IDE
Currently everything is tested manually: on Ubuntu and Amazon AMI. Only small part of tests are used only to check, if it compiles.
Before committing please run scripts/code-quality.sh
,
so there will be less discussions "between tabs vs spaces"
glide install
downloads packages of github.com/Auginte/go-monitoring/
and those differ from not commited code.
Solution: Remove github.com/Auginte/go-monitoring/
from vendor
folder.