Sha256: fb36c00f569274d05c1f1e43f0b4b1b17809244be6a6615ef76e544b8f4e391e
Contents?: true
Size: 214 Bytes
Versions: 8
Compression:
Stored size: 214 Bytes
Contents
collect do next if not File.readable?('/proc/loadavg') File.open('/proc/loadavg') do |file| loadavg = file.read.chomp.split[0,3].map(&:to_f) Metriks.histogram("os.loadavg").update(loadavg[0]) end end
Version data entries
8 entries across 8 versions & 1 rubygems