Sha256: d2dd45dd86816748065a33b3174717622eab356f670fb6183948ee9886029f36

Contents?: true

Size: 516 Bytes

Versions: 2

Compression:

Stored size: 516 Bytes

Contents

# Ruby Worker

The Ruby Worker sends JSON data via UDP packets to a given host at a defined interval.

### Installation

    gem install healthety

### Usage

    require "healthety"

    Healthety.workers do
      server "127.0.0.1"
      port 8124

      worker :load_average do
        interval 0.5
        # Get load average with a system call (OS X)
        value `w | head -n1 | cut -f4 -d":" | cut -f2 -d" "`.to_f
      end

      worker :memory do
        interval 2
        value rand(10)
      end
    end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
healthety-0.0.3 README.md
healthety-0.0.2 README.md