@@ -32,17 +32,20 @@ func getNetDevStats(filter *deviceFilter, logger *slog.Logger) (netDevStats, err
3232
3333 for _ , stat := range stats {
3434 netDev [stat .Name ] = map [string ]uint64 {
35- "receive_bytes" : uint64 (stat .RxBytes ),
36- "receive_dropped" : uint64 (stat .RxPacketsDropped ),
37- "receive_errors" : uint64 (stat .RxErrors ),
38- "receive_multicast" : uint64 (stat .RxMulticastPackets ),
39- "receive_packets" : uint64 (stat .RxPackets ),
40- "transmit_bytes" : uint64 (stat .TxBytes ),
41- "transmit_dropped" : uint64 (stat .TxPacketsDropped ),
42- "transmit_errors" : uint64 (stat .TxErrors ),
43- "transmit_multicast" : uint64 (stat .TxMulticastPackets ),
44- "transmit_packets" : uint64 (stat .TxPackets ),
45- "transmit_queue_overflow" : uint64 (stat .TxQueueOverflow ),
35+ "receive_bytes" : uint64 (stat .RxBytes ),
36+ "receive_dropped" : uint64 (stat .RxPacketsDropped ),
37+ "receive_errors" : uint64 (stat .RxErrors ),
38+ "receive_multicast" : uint64 (stat .RxMulticastPackets ),
39+ "receive_packets" : uint64 (stat .RxPackets ),
40+ "receive_collision_errors" : uint64 (stat .RxCollisionErrors ),
41+ "transmit_bytes" : uint64 (stat .TxBytes ),
42+ "transmit_dropped" : uint64 (stat .TxPacketsDropped ),
43+ "transmit_errors" : uint64 (stat .TxErrors ),
44+ "transmit_multicast" : uint64 (stat .TxMulticastPackets ),
45+ "transmit_packets" : uint64 (stat .TxPackets ),
46+ "transmit_queue_overflow" : uint64 (stat .TxQueueOverflow ),
47+ "transmit_collision_single_errors" : uint64 (stat .TxSingleCollisionCount ),
48+ "transmit_collision_multiple_errors" : uint64 (stat .TxMultipleCollisionCount ),
4649 }
4750 }
4851
0 commit comments