Module Vmstat
In: lib/vmstat.rb
lib/vmstat/memory.rb
lib/vmstat/version.rb
lib/vmstat/solaris.rb
lib/vmstat/linux_disk.rb
lib/vmstat/disk.rb
lib/vmstat/procfs.rb
lib/vmstat/task.rb
lib/vmstat/network_interface.rb
lib/vmstat/stub.rb
lib/vmstat/cpu.rb
lib/vmstat/snapshot.rb
lib/vmstat/netopenbsd.rb
lib/vmstat/load_average.rb

This is a focused and fast library to get system information like:

  • Memory (free, active, …)
  • Network Interfaces (name, in bytes, out bytes, …)
  • CPU (user, system, nice, idle)
  • Load Average
  • Disk (type, disk path, free bytes, total bytes, …)
  • Boot Time
  • Current Task (used bytes and usage time MACOSX or LINUX ONLY)

Methods

Classes and Modules

Module Vmstat::ProcFS
Module Vmstat::Solaris
Module Vmstat::Stub
Class Vmstat::Cpu
Class Vmstat::Disk
Class Vmstat::LinuxDisk
Class Vmstat::LinuxMemory
Class Vmstat::LoadAverage
Class Vmstat::Memory
Class Vmstat::NetworkInterface
Class Vmstat::Snapshot
Class Vmstat::Task

Constants

VERSION = "2.3.0"

Public Class methods

Filters all available ethernet devices. @return [Array<NetworkInterface>] the ethernet devices

Filters all available loopback devices. @return [Array<NetworkInterface>] the loopback devices

Creates a full snapshot of the systems hardware statistics. @param [Array<String>] paths the paths to the disks to snapshot. @return [Vmstat::Snapshot] a snapshot of all statistics. @example

  Vmstat.snapshot # => #<struct Vmstat::Snapshot ...>

[Validate]