Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ethtool monitoring support to Flent #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 23, 2024

  1. Add ethtool monitoring support to Flent

    This commit adds ethtool monitoring to Flent. The "common.inc" file
    includes this capability in most Flent tests. The ethtool support adds
    three new test parameters: "ethtool_hosts", "ethtool_devices", and
    "ethtool_fields". Behind the scenes, Flent runs the "ethtool -S <nic>
    command on all devices that support it via SSH.
    
    A breakdown of these new parameters is as follows:
    - ethtool_hosts: Specifies the hosts to monitor ethtool fields. The
      hosts are specified using a comma-separated list.
    - ethtool_devices: This parameter specifies which network devices to
      monitor instead of all of them. This parameter is also a
      comma-separated list.
    - ethtool_fields: This parameter defines a comma-separated list of
      fields to monitor. If this field is not set, it will default to
      monitor the "rx_packets" and "tx_packets" fields. The fields can
      also be prefixed with the network card if you only want to see
      that field for that particular device.
    
    Example:
    ethtool_devices=eth0,eth1
    ethtool_fields=tx_packets_phy,rx_packets_phy,eth2:rx_bytes
    
    In this example, the fields "tx_packets_phy" and "rx_packets_phy" will
    be monitored on eth0 and eth1; however, only field rx_bytes will be
    monitored on eth2.
    
    One limitation of this version of the ethtool capability is that all
    hosts will share the same values of devices and fields.
    
    Signed-off-by: Frey Alfredsson <[email protected]>
    freysteinn committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    1ec9b9a View commit details
    Browse the repository at this point in the history