Sha256: ed911b36cbd4bb23ac3d77163bab4d3accb8a4fc70f0b359d5f29d6987ed67a0
Contents?: true
Size: 980 Bytes
Versions: 9
Compression:
Stored size: 980 Bytes
Contents
class Scout::Realtime::Cpu < Scout::Realtime::Metric include Scout::Realtime::Aggregator FIELDS = { :user => { 'units' => '%', 'precision' => 1 }, :system => { 'units' => '%', 'precision' => 1 }, :idle => { 'units' => '%', 'precision' => 1 }, :io_wait => { 'units' => '%', 'precision' => 1, 'label' => 'IO Wait' }, :steal => { 'units' => '%', 'precision' => 1 }, :interrupts => { 'units' => '/sec', 'precision' => 1 }, :procs_running => { 'units' => '', 'precision' => 0 }, :procs_blocked => { 'units' => '', 'precision' => 0 } } def initialize # load average metrics aren't displayed in scout_realtime and the call to grab this is a system call, # which is slow. avoids this. @collector = ServerMetrics::Cpu.new(:skip_load => true) super end end
Version data entries
9 entries across 9 versions & 1 rubygems