Module: StatsCloud::Plugin::SystemMonitor::Network

Includes:
BytesConverter
Included in:
Engine
Defined in:
lib/stats_cloud/plugin/system_monitor/network.rb

Overview

Provides information about network flow.

Instance Method Summary collapse

Methods included from BytesConverter

#bytes_to_megabytes, #kilobytes_to_gigabytes, #kilobytes_to_megabytes

Instance Method Details

#record_network_infoObject



12
13
14
15
16
17
# File 'lib/stats_cloud/plugin/system_monitor/network.rb', line 12

def record_network_info
  return unless counters_info

  meter.record_event("system-monitor.net.rx-mb-per-s", bytes_to_megabytes(total_bandwidth_received))
  meter.record_event("system-monitor.net.tx-mb-per-s", bytes_to_megabytes(total_bandwidth_transmitted))
end