rtbeat

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

README

rxtx data transmission irsync Release Go Report Card Docker Container Image Size Docker Container Layers Docker Container Pulls

Rtbeat

Rtbeat processes HTTP POST data from rxtx and publishes events into elasticsearch, logstash, kafka, redis or directly to log files.

Rtbeat Development

Requirements
Clone

To clone Rtbeat from the git repository, run the following commands:

mkdir -p ${GOPATH}/src/github.com/txn2/rtbeat
git clone https://github.com/txn2/rtbeat ${GOPATH}/src/github.com/txn2/rtbeat

For further development, check out the beat developer guide.

Build

To build the binary for Rtbeat run the command below. This will generate a binary in the same directory with the name rtbeat.

make
Run

To run Rtbeat with debugging output enabled, run:

./rtbeat -c rtbeat.yml -e -d "*"
Test

To test Rtbeat, run the following command:

make testsuite

alternatively:

make unit-tests
make system-tests
make integration-tests
make coverage-report

The test coverage is reported in the folder ./build/coverage/

Update

Each beat has a template for the mapping in elasticsearch and a documentation for the fields which is automatically generated based on fields.yml by running the following command.

make update
Cleanup

To clean up the build directory and generated artifacts, run:

make clean

Packaging

The beat frameworks provides tools to crosscompile and package your beat for different platforms. This requires docker and vendoring as described above. To build packages of the rt beat, run the following command:

make package

This will fetch and create all images required for the build process. The whole process to finish can take several minutes.

Building and Releasing

rtBeat uses GORELEASER to build binaries and Docker containers.

Test Release Steps

Install GORELEASER with brew (MacOS):

brew install goreleaser/tap/goreleaser

Build without releasing:

goreleaser --skip-publish --rm-dist --skip-validate
Release Steps
  • Commit latest changes
  • Tag a version git tag -a v1.0 -m "Version 1.0"
  • Push tag git push origin v2.0
  • Run: GITHUB_TOKEN=$GITHUB_TOKEN goreleaser --rm-dist

Resources

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL