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

Version Path
ganymed-0.5.2 lib/ganymed/collectors/load.rb
ganymed-0.5.1 lib/ganymed/collectors/load.rb
ganymed-0.5.0 lib/ganymed/collectors/load.rb
ganymed-0.4.4 lib/ganymed/collectors/load.rb
ganymed-0.4.3 lib/ganymed/collectors/load.rb
ganymed-0.4.2 lib/ganymed/collectors/load.rb
ganymed-0.4.1 lib/ganymed/collectors/load.rb
ganymed-0.4.0 lib/ganymed/collectors/load.rb