mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-25 11:49:58 +01:00
6eafa51fa8
* Implement commonalities and linux support for ARP collection * Add ARP collector to fixtures and run as part of e2e tests * Bubble up scanner errors * Use single return values where it makes sense * Add missing annotation * Move arp_common into arp_linux * Add license header to arp_linux.go * Address initial feedback * Use strings.Fields instead of strings.Split * Deal with scanner.Err() rather than throwing away errors * Check for scan errors in-line before interacting with the entries map * Don't interact with potentially empty text from scan * Check for scan errors outside the scan loop * Add comment about moving procfs parsing * Add more direct comment * Update initialism style to match go style guide * Put function args on the same line * Add TODO in front of comment about procfs extraction * Guard against strings.Fields returning an empty slice * Be more defensive about ARP table format and use upcase more broadly * Enable the ARP collector by default * Add ARP collector to the README * Remove 'entry'
8 lines
529 B
Plaintext
8 lines
529 B
Plaintext
IP address HW type Flags HW address Mask Device
|
|
192.168.1.1 0x1 0x2 cc:aa:dd:ee:aa:bb * eth0
|
|
192.168.1.2 0x1 0x2 bb:cc:dd:ee:ff:aa * eth0
|
|
192.168.1.3 0x1 0x2 aa:bb:cc:dd:ee:ff * eth0
|
|
192.168.1.4 0x1 0x2 dd:ee:ff:aa:bb:cc * eth1
|
|
192.168.1.5 0x1 0x2 ee:ff:aa:bb:cc:dd * eth1
|
|
192.168.1.6 0x1 0x2 ff:aa:bb:cc:dd:ee * eth1
|