metwork-framework/mfsysmon

add a custom netio telegraf collector like custom_diskio

thefab opened this issue · 1 comments

The python function to call:

https://psutil.readthedocs.io/en/latest/#psutil.net_io_counters

We are interested in:

bytes_sent_per_second
bytes_recv_per_second
packets_sent_per_second
packet_recv_per_second
errin_per_second
errout_per_second
dropin_per_second
dropout_per_second
dropin_percent = 100.0 * dropin_per_second / packet_recv_per_second (borné entre 0 et 100)
dropout_percent = 100.0 * dropout_per_second / packet_sent_per_second (borné entre 0 et 100)

see 43f7dd6 for diskio implementation/example