class BaselineRedAgent::Plugin::System::Memory

Public Instance Methods

call() click to toggle source
# File lib/baseline_red_agent/plugin/system/memory.rb, line 8
def call
  memory = Vmstat.memory
  [
    ["system.memory.free_bytes",     memory.free_bytes],
    ["system.memory.inactive_bytes", memory.inactive_bytes],
    ["system.memory.active_bytes",   memory.active_bytes],
    ["system.memory.wired_bytes",    memory.wired_bytes],
    ["system.memory.total_bytes",    memory.total_bytes]
  ]
end