Project

meter

0.0
Low commit activity in last 3 years
No release in over a year
A generic abstraction layer for fire and forgetting measurements via UDP.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.16.3
 Project Readme

Meter

A generic abstraction layer for tracking metrics and other data via configurable backends.

Installation

gem install meter

Usage

Configuration

Meter.configure do |config|
  config.namespace = 'my_app'
  config.backends << Meter::Backends::Datadog.new
  config.backends << Meter::Backends::JsonLog.new
end

#### Syntax

```ruby
Meter.increment key, sample_rate: 0.5, tags: {}, data: {}

Examples

Meter.increment 'my.key'
Meter.increment 'my.key', 5
Meter.increment 'my.key', 5, sample_rate: 0.25

Meter.gauge 'my.gauge.key', 20