项目作者: dirk

项目描述 :
Ingest logs and forward aggregated data to APIs/services
高级语言: Rust
项目地址: git://github.com/dirk/metrics_distributor.git
创建时间: 2016-02-18T06:40:18Z
项目社区:https://github.com/dirk/metrics_distributor

开源协议:BSD 3-Clause "New" or "Revised" License

下载


Build Status

Metrics Distributor

Metrics distributor is a Rust library for streamlining the creation and operation of metrics aggregation services. You can use it to build a simple, multi-protocol collection and forwarding service for your metrics.

Distributors can collect over a number of protocols and formats:

They can then forward aggregated metrics over a number of protocols:

Building on macOS

The system OpenSSL on macOS is too outdated. To use the one installed by Homebrew, run the following commands before building:

  1. export OPENSSL_INCLUDE_DIR=`brew --prefix openssl`/include
  2. export OPENSSL_LIB_DIR=`brew --prefix openssl`/lib
  3. export LDFLAGS=-L`brew --prefix openssl`/lib

Configuration

Distributor uses code as configuration. Rather than parsing a configuration format, you configure your service by composing collectors and forwarders. This means you get the added advantage of the powerful Rust compiler checking your “configuration” for correctness and that it’s very easy to customize or create entirely new collections/forwarders.

See the examples/ folder for some common configurations:

It turns out that the number of lines needed to set up a few collectors and forwarders in code is almost exactly the same as you would need with YAML/TOML/etc.

License

Licensed under the 3-clause BSD license. See LICENSE for details.