Method: Nosey::Munin::Graph#sample

Defined in:
lib/nosey/munin.rb

#sampleObject

Munin calls this to set the values in the chart total.value 0 other.value 2



60
61
62
63
64
65
66
67
# File 'lib/nosey/munin.rb', line 60

def sample
  body = StringIO.new
  munin_hash.each do |field, (label, value)|
    body.puts "#{field}.value #{value}"
  end
  body.rewind
  body.read
end