Sha256: 1d36fe66a6cdee31ce4e9e2b9b0f08649eb01477c858371b87a388fdcb7a3f3b
Contents?: true
Size: 648 Bytes
Versions: 5
Compression:
Stored size: 648 Bytes
Contents
require 'vmstat' require_relative "../base" module AppPerfAgent module Plugin module System class Memory < AppPerfAgent::Plugin::Base 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 end end end end AppPerfAgent.logger.info "Loading Memory monitoring."
Version data entries
5 entries across 5 versions & 1 rubygems