shatteredsilicon / ssm-submodules

GNU Affero General Public License v3.0
0 stars 2 forks source link

Add network packet queue length monitoring #206

Open gordan-bobic opened 9 months ago

gordan-bobic commented 9 months ago

It would be useful to have the number of packets in the network receive / transmit queues.

I can think of two ways to get this:

1) Via SNMP:

IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0

or via tc:

tc -s -d qdisc ls dev eth0 | grep backlog

SNMP will hopefully work for the snmp remote hosts. I'm hoping there is a file somewhere in /proc or /sys that can be polled by node_exporter (if it isn't already capturing it) that can be used instead of using the tc command.