node_exporter/collector/fixtures/ethtool/eth0/statistics
Benjamin Drung 26ca609183 ethtool: Expose node_ethtool_info metric
Add a `node_ethtool_info` metric to all ethtool devices to expose driver
information with following labels:

 * bus_info
 * driver
 * expansion_rom_version
 * firmware_version
 * version

This metric is useful to monitor the firmware version to be up-to-date.

Note: The version label might be malformed due to bug #39 in ethtool:
https://github.com/safchain/ethtool/issues/39

Signed-off-by: Benjamin Drung <benjamin.drung@ionos.com>
2021-08-16 16:09:35 +02:00

16 lines
330 B
Plaintext

# ethtool -S eth0
NIC statistics:
tx_packets: 961500
rx_packets: 1260062
tx_errors: 0
rx_errors: 0
rx_missed: 401
align_errors: 0
tx_single_collisions: 0
tx_multi_collisions: 0
rx_unicast: 1230297
rx_broadcast: 5792
rx_multicast: 23973
tx_aborted: 0
tx_underrun: 0