Skip to content

Commit 481b824

Browse files
AIX: Add transmit_queue_overflow metric to netdev collector
Signed-off-by: Johannes Ziemke <[email protected]>
1 parent 65d2538 commit 481b824

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

collector/netdev_aix.go

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,17 @@ func getNetDevStats(filter *deviceFilter, logger *slog.Logger) (netDevStats, err
3232

3333
for _, stat := range stats {
3434
netDev[stat.Name] = map[string]uint64{
35-
"receive_packets": uint64(stat.RxPackets),
36-
"transmit_packets": uint64(stat.TxPackets),
37-
"receive_bytes": uint64(stat.RxBytes),
38-
"transmit_bytes": uint64(stat.TxBytes),
39-
"receive_errors": uint64(stat.RxErrors),
40-
"transmit_errors": uint64(stat.TxErrors),
41-
"receive_dropped": uint64(stat.RxPacketsDropped),
42-
"transmit_dropped": uint64(stat.TxPacketsDropped),
43-
"receive_multicast": uint64(stat.RxMulticastPackets),
44-
"transmit_multicast": uint64(stat.TxMulticastPackets),
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),
4546
}
4647
}
4748

0 commit comments

Comments
 (0)