0
CentOS 8 / RHEL 8 come with Linux kernel version 4.18. This version of the kernel includes efficient in-kernel packet sampling that can be used to provide network visibility for production servers running network heavy workloads, see
Berkeley Packet Filter (BPF).
This article provides instructions for installing and configuring the open source
Host sFlow agent to remotely monitor servers using the industry standard
sFlow protocol. The
sFlow-RT real-time analyzer is used to demonstrate the capabilities of sFlow telemetry.
Find the latest Host sFlow version on the Host sFlow
download page.
wget https://github.com/sflow/host-sflow/releases/download/v2.0.26-3/hsflowd-centos8-2.0.26-3.x86_64.rpm
sudo rpm -i hsflowd-centos8-2.0.26-3.x86_64.rpm
sudo systemctl enable hsflowd
The above commands download and install the software.
sflow {
collector { ip=10.0.0.30 }
pcap { speed=1G-1T }
tcp { }
systemd { }
}Edit the
/etc/hsflowd.conf file. The above example sends sFlow to a collector at
10.0.0.30, enables packet sampling on all network adapters, adds
TCP performance information, and exports metrics for
Linux services. See
Configuring Host sFlow for Linux for the complete set of configuration options.
sudo systemctl restart hsflowd
Restart the Host sFlow daemon to
Continue reading