Module: StatsCloud::Plugin::SystemMonitor::Memory
- Includes:
- BytesConverter
- Included in:
- Engine
- Defined in:
- lib/stats_cloud/plugin/system_monitor/memory.rb
Overview
Provides information about system memory.
Instance Method Summary collapse
Methods included from BytesConverter
#bytes_to_megabytes, #kilobytes_to_gigabytes, #kilobytes_to_megabytes
Instance Method Details
#record_memory_info ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/stats_cloud/plugin/system_monitor/memory.rb', line 12 def record_memory_info return unless memory_info meter.record_event("system-monitor.memory.available-gb", available_memory_in_gigabytes) meter.record_event("system-monitor.memory.active-gb", active_memory_in_gigabytes) meter.record_event("system-monitor.memory.active-percent", percent_of_active_memory) meter.record_event("system-monitor.memory.swap-gb", swap_memory_in_gigabytes) end |