Class: AppPerfAgent::Plugin::System::Network
- Defined in:
- lib/app_perf_agent/plugin/system/network.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/app_perf_agent/plugin/system/network.rb', line 8 def call inets = Vmstat.ethernet_devices inets.flat_map {|inet| [ [ AppPerfAgent::Types::NETWORK, "system.network.in_bytes", inet.name.to_s, inet.in_bytes ], [ AppPerfAgent::Types::NETWORK, "system.network.out_bytes", inet.name.to_s, inet.out_bytes ] ] } end |