Sha256: 92c5b114ba57f16d9e722e4bb53fe95ab69ff8a9cd824956d7c4a6adbbb258fd

Contents?: true

Size: 254 Bytes

Versions: 11

Compression:

Stored size: 254 Bytes

Contents

interval 60
always_start true

collect :os => "linux" do
  event(
    :metric => File.read('/proc/uptime').split(' ').first.to_f
  )
end

collect :os => "darwin" do
  event(
    :metric => shell("sysctl -n kern.boottime | awk '{print $4}'").to_f
  )
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kurchatov-0.0.5.pre5 examples/uptime.rb
kurchatov-0.0.5.pre4 examples/uptime.rb
kurchatov-0.0.5.pre2 examples/uptime.rb
kurchatov-0.0.5.pre1 examples/uptime.rb
kurchatov-0.0.4 examples/uptime.rb
kurchatov-0.0.4d examples/uptime.rb
kurchatov-0.0.4c examples/uptime.rb
kurchatov-0.0.4b examples/uptime.rb
kurchatov-0.0.3 examples/uptime.rb
kurchatov-0.0.3b examples/uptime.rb
kurchatov-0.0.3a examples/uptime.rb