Skip to content

Latest commit

 

History

History
executable file
·
60 lines (44 loc) · 1.94 KB

README.md

File metadata and controls

executable file
·
60 lines (44 loc) · 1.94 KB

Go monitoring tools

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.

Building with docker

  • Install docker
  • Install glide
  • Download dependencies: glide install
  • Run scripts/build.sh
  • Check results in bin folder

Using docker-compose

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)

Developing with local go

Tests?

Currently everything is tested manually: on Ubuntu and Amazon AMI. Only small part of tests are used only to check, if it compiles. Build Status

Before committing please run scripts/code-quality.sh, so there will be less discussions "between tabs vs spaces"

Known issues

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.