oleewere/meteringp

Metering event producer

★ 0Forks 0GoGitHub ↗Compare

README

meteringp

GoDoc Widget Build Status Go Report Card license

Tool for generating metering JSON events to stdout or files. These outputs can be processed by other tools like fluentd in order to parse and send to an external service.

Installation

Installation on Mac OSX

brew tap oleewere/repo
brew install meteringp

Installation on Linux

Using wget:

METERINGP_VERSION=0.3.0
wget -qO- "https://github.com/oleewere/meteringp/releases/download/v${METERINGP_VERSION}/meteringp_${METERINGP_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -zxv meteringp

Using curl:

METERINGP_VERSION=0.3.0
curl -L -s "https://github.com/oleewere/meteringp/releases/download/v${METERINGP_VERSION}/meteringp_${METERINGP_VERSION}_linux_64-bit.tar.gz" | tar -C /usr/bin -xzv meteringp

Usage

Examples

meteringp --config sample/meteringp.conf

Using with docker:

docker build -t oleewere/meteringp .
docker run --rm -v $(pwd)/sample:/sample oleewere/meteringp --config /sample/meteringp.conf

See sample folder to check the configuration options.

Contributors

oleewere

Issues