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