Sha256: 0633f56148a67a66a4318fd6778304c5af7c29c75c7418e3f83017643b60349e
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
require "vmstat" require_relative "base" module AppPerfAgent module Plugin module System class Network < AppPerfAgent::Plugin::Base 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 end end end end AppPerfAgent.logger.info "Loading Network monitoring."
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
app_perf_agent-0.0.3 | lib/app_perf_agent/plugin/system/network.rb |