Sha256: 7a92d0bc4b6eb2b967c7bebd455676ff667a0903824bdf227123fdd6ed901157
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
require 'vmstat' module AppPerfAgent module Plugin module System class Memory < AppPerfAgent::Plugin::Base def call memory = Vmstat.memory [ [ AppPerfAgent::Types::MEMORY, "system.memory.free_bytes", "Memory (Free)", memory.free_bytes ], [ AppPerfAgent::Types::MEMORY, "system.memory.inactive_bytes", "Memory (Inactive)", memory.inactive_bytes ], [ AppPerfAgent::Types::MEMORY, "system.memory.active_bytes", "Memory (Active)", memory.active_bytes ], [ AppPerfAgent::Types::MEMORY, "system.memory.wired_bytes", "Memory (Wired)", memory.wired_bytes ], [ AppPerfAgent::Types::MEMORY, "system.memory.total_bytes", "Memory (Total)", memory.total_bytes ] ] end end end end end AppPerfAgent.logger.info "Loading Memory monitoring."
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
app_perf_agent-0.0.2 | lib/app_perf_agent/plugin/system/memory.rb |