0.0
No commit activity in last 3 years
No release in over 3 years
Statsd Server with flexible aggregation and back-end support
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.0.0
>= 0
>= 0
>= 2.6.0
>= 0.8

Runtime

 Project Readme

MultiStatsd Build Status Code Climate

An eventmachine-based statsd server written in ruby with a modular backend system. The motivation behind creating Yet Another Statsd Server was that while the existing ones allowed you to specify different backends to flush data to, it was always aggregated the same way and flushed on the same interval. This library incurs the overhead of multiple copies of your statistics with the tradeoff that you can have backend-specific flush intervals and alternate aggregations of your data.

Installation

$ gem install multi-statsd

Configuration

Configuration is done via a YAML file which is specified on the command line. Example config file:

# Host and port to listen on
host: 127.0.0.1
port: 8125
verbosity: 1 # 0-4, 0 being the most verbose
logfile: /var/log/multi-statsd.log
pidfile: /var/run/multi-statsd.pid
daemonize: true
backends:
  stdout_every_5:
    backend: Stdout
    flush_interval: 5
  hottie:
    backend: Hottie
    host: 127.0.0.1
    port: 6379
    flush_interval: 1
    seconds_to_retain: 60

Usage

Usage is straight forward:

$ multi-statsd -c /path/to/config

Todo

  1. Create graphite backend
  2. Create relay backend

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request