Skip to content

collectors NetworkCollector

Rob Smith edited this page Dec 2, 2012 · 20 revisions

NetworkCollector

The NetworkCollector class collects metrics on network interface usage using /proc/net/dev.

Dependencies

  • /proc/net/dev
  • psutil #Python Module.

Options - Generic Options

Setting Default Description Type
byte_unit megabit, megabyte, Default numeric output(s) list
enabled False Enable collecting these metrics bool
greedy true Greedy match interfaces str
interfaces eth, bond, em, List of interface types to collect list
measure_collector_time False Collect the collector run time in ms bool

Example Output

servers.hostname.network.bond3.rx_megabyte (2.504, 2)
servers.hostname.network.bond3.tx_megabyte (4.707, 2)
servers.hostname.network.em2.rx_megabyte (2.504, 2)
servers.hostname.network.em2.tx_megabyte (4.707, 2)
servers.hostname.network.eth0.rx_megabyte (2.504, 2)
servers.hostname.network.eth0.tx_megabyte (4.707, 2)
servers.hostname.network.eth1.rx_megabyte (0.0, 2)
servers.hostname.network.eth1.tx_megabyte (0.0, 2)
Clone this wiki locally