From 430023e7e22f64dd9177c8a07de79beabed44789 Mon Sep 17 00:00:00 2001 From: Johannes Ziemke Date: Thu, 22 May 2025 17:53:32 +0200 Subject: [PATCH] AIX: Add netadapter collision counters Signed-off-by: Johannes Ziemke --- collector/netdev_aix.go | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/collector/netdev_aix.go b/collector/netdev_aix.go index 7ddc002e..e29371b1 100644 --- a/collector/netdev_aix.go +++ b/collector/netdev_aix.go @@ -32,17 +32,20 @@ func getNetDevStats(filter *deviceFilter, logger *slog.Logger) (netDevStats, err for _, stat := range stats { netDev[stat.Name] = map[string]uint64{ - "receive_bytes": uint64(stat.RxBytes), - "receive_dropped": uint64(stat.RxPacketsDropped), - "receive_errors": uint64(stat.RxErrors), - "receive_multicast": uint64(stat.RxMulticastPackets), - "receive_packets": uint64(stat.RxPackets), - "transmit_bytes": uint64(stat.TxBytes), - "transmit_dropped": uint64(stat.TxPacketsDropped), - "transmit_errors": uint64(stat.TxErrors), - "transmit_multicast": uint64(stat.TxMulticastPackets), - "transmit_packets": uint64(stat.TxPackets), - "transmit_queue_overflow": uint64(stat.TxQueueOverflow), + "receive_bytes": uint64(stat.RxBytes), + "receive_dropped": uint64(stat.RxPacketsDropped), + "receive_errors": uint64(stat.RxErrors), + "receive_multicast": uint64(stat.RxMulticastPackets), + "receive_packets": uint64(stat.RxPackets), + "receive_collision_errors": uint64(stat.RxCollisionErrors), + "transmit_bytes": uint64(stat.TxBytes), + "transmit_dropped": uint64(stat.TxPacketsDropped), + "transmit_errors": uint64(stat.TxErrors), + "transmit_multicast": uint64(stat.TxMulticastPackets), + "transmit_packets": uint64(stat.TxPackets), + "transmit_queue_overflow": uint64(stat.TxQueueOverflow), + "transmit_collision_single_errors": uint64(stat.TxSingleCollisionCount), + "transmit_collision_multiple_errors": uint64(stat.TxMultipleCollisionCount), } }