# Meter

BETA!

A generic abstraction layer for fire and forgetting measurements via UDP.

# Installation

```bash
gem install meter
````

# Usage

#### Syntax

```ruby
Meter.increment key, delta, options
````

#### Examples 

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

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

# Meter

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

# Installation

```bash
gem install meter
````

# Usage

#### Configuration

```ruby
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

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

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

Add a little more info to the readme
Add a little more info to the readme

More is coming
