Class: BaselineRedAgent::Plugin::System::Memory

Inherits:
Base
  • Object
show all
Defined in:
lib/baseline_red_agent/plugin/system/memory.rb

Instance Method Summary collapse

Methods inherited from Base

descendants

Instance Method Details

#callObject



8
9
10
11
12
13
14
15
16
17
# 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