Skip to content

Commit 0cd19d9

Browse files
authored
Merge pull request #1694 from natali-rs1985/T7938
vpp: T938: Delete 'sample-rate' from vpp sflow CLI and add 'header-bytes'
2 parents db46ed7 + 0ec6852 commit 0cd19d9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/vpp/configuration/sflow.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ This will enable sFlow on the specified interface. You can repeat this command f
2626

2727
sFlow collects statistics only for traffic *received* on the interface. If you want to monitor traffic *sent* on the interface, you need to enable sFlow on the corresponding interface in the opposite direction.
2828

29-
Optionally, you can specify the sampling rate for the interface using the following command:
29+
Optionally, you can specify the number of bytes from each packet that should be included in the sFlow sample using the following command:
3030

3131
.. cfgcmd::
3232

33-
set vpp sflow sample-rate <rate>
33+
set vpp sflow header-bytes <bytes>
3434

35-
This will set the sampling rate for the specified interface. The default sampling rate is 1, which means that every packet is sampled. A higher sampling rate means that fewer packets are sampled, which can reduce the amount of data sent to the sFlow collector. This can be useful in high-traffic environments to reduce the load on the collector.
35+
This defines the size of the packet header (in bytes) captured for each sFlow sample.
36+
37+
The sampling rate is configured globally under the ``system sflow`` section and automatically applied to VPP sFlow.
38+
This ensures consistent sampling behavior between the system and VPP, and prevents configuration conflicts.
3639

3740
Finally, you need to enable integration between VPP and the kernel sFlow agent using the following command:
3841

0 commit comments

Comments
 (0)