Sha256: 300039ea5f771bc812bf25fa4249dd6eeb1c555e623655a848e0d81ff05f1640

Contents?: true

Size: 1.09 KB

Versions: 4

Compression:

Stored size: 1.09 KB

Contents

class Scout::Realtime::Disk < Scout::Realtime::Metric
  include Scout::Realtime::MultiAggregator

  FIELDS = {:size =>         {'label'=>'Disk Size', 'units'=>'GB', 'precision'=>0},
            :used =>         {'label'=>'Disk Space Used', 'units'=>'GB', 'precision'=>0},
            :avail =>        {'label'=>'Disk Space Available', 'units'=>'GB', 'precision'=>0},
            :used_percent => {'label'=>'Disk Capacity', 'units'=>'%', 'precision'=>0},
            :utilization =>  {'label'=>'Utilization', 'units'=>'%', 'precision'=>0},
            :await =>        {'label'=>'I/O Wait', 'units'=>'ms', 'precision'=>1},
            :wps =>          {'label'=>'Writes/sec', 'precision'=>0},
            :rps_kb =>       {'label'=>'Read kBps', 'units'=>'kB/s', 'precision'=>1},
            :average_queue_length => {'label'=>'Average Queue Size', 'precision'=>1},
            :wps_kb =>       {'label'=>'Write kBps', 'units'=>'kB/s', 'precision'=>1},
            :rps =>          {'label'=>'Reads/sec', 'precision'=> 0}
           }

  def initialize
    @collector = ServerMetrics::Disk.new()
    super
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
scout_realtime-0.5.4 lib/scout_realtime/models/disk.rb
scout_realtime-0.5.3 lib/scout_realtime/models/disk.rb
scout_realtime-0.5.2 lib/scout_realtime/models/disk.rb
scout_realtime-0.5.1 lib/scout_realtime/models/disk.rb