Sha256: 910326f2b1219c9a315192a0ce5afb39a0939d5104b5d8ef4fb115a670957792

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

always_start true
interval 60

collect :os => "linux" do
  event(
    :metric      => File.read('/proc/loadavg').scan(/[\d\.]+/)[0].to_f,
    :desc => 'LA averaged over 1 minute',
    :service     => 'la la_1'
  )
end

collect :os => "darwin" do
  event(
    :metric      => shell('uptime | cut -d":" -f4- | sed s/,//g').to_f,
    :desc => 'LA averaged over 1 minute',
    :service     => 'la la_1'
  )
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kurchatov-0.0.2 examples/la.rb
kurchatov-0.0.2b examples/la.rb