Class: Munin::RakeProcesses::Memory

Inherits:
Plugin
  • Object
show all
Defined in:
lib/munin/rake_processes/memory.rb

Instance Attribute Summary

Attributes inherited from Plugin

#debug, #graph_category

Instance Method Summary collapse

Methods inherited from Plugin

#autoconf, #initialize, #rake_processes, rake_ps_string

Constructor Details

This class inherits a constructor from Munin::RakeProcesses::Plugin

Instance Method Details

#configObject



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/munin/rake_processes/memory.rb', line 5

def config
  puts <<-CONFIG
graph_category #{graph_category}
graph_info The Memory usage of Rake processes currently running - (possibly from cron)
graph_title Memory usage of Rake Processes
graph_vlabel Memory usage of Rake Processes
  CONFIG
  rake_processes.each_key do |key|
    puts "#{key}_Memory.label #{key}_Memory"
  end
end

#runObject



17
18
19
20
21
# File 'lib/munin/rake_processes/memory.rb', line 17

def run
  rake_processes.each do |cmd, values|
    puts "#{cmd}_Memory.value #{values[:memory]}"
  end
end