Skip to content

collectors SockstatCollector

Rob Smith edited this page Apr 19, 2013 · 12 revisions

SockstatCollector

Uses /proc/net/sockstat to collect data on number of open sockets

Dependencies

  • /proc/net/sockstat

Options - Generic Options

Setting Default Description Type
byte_unit byte Default numeric output(s) str
enabled True Enable collecting these metrics str
measure_collector_time False Collect the collector run time in ms bool

Example Output

servers.hostname.sockets.tcp_alloc 13
servers.hostname.sockets.tcp_inuse 10
servers.hostname.sockets.tcp_mem 1
servers.hostname.sockets.tcp_orphan 0
servers.hostname.sockets.tcp_tw 1
servers.hostname.sockets.udp_inuse 0
servers.hostname.sockets.udp_mem 0
servers.hostname.sockets.used 118

This file was generated from the python source

Please edit the source to make changes

Clone this wiki locally