summaryrefslogtreecommitdiff
path: root/interface-definitions
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-03-17 12:38:27 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-03-17 12:43:13 +0000
commit57c06dcd78f9b711c4fb46e6657b0a496059a685 (patch)
tree0a37d9f887ac862cbd6f8122b88e8f4eafa1f582 /interface-definitions
parentda42b37983e75dc4587160036be9eb71df4e4989 (diff)
downloadvyos-1x-57c06dcd78f9b711c4fb46e6657b0a496059a685.tar.gz
vyos-1x-57c06dcd78f9b711c4fb46e6657b0a496059a685.zip
T5086: Add sFlow drop-monitor-limit option
hsflowd will export the headers of dropped packets (along with the name of the function in the Linux kernel where that skb was dropped) as part of the standard sFlow feed. This measurement complements the sFlow packet sampling and counter-telemetry well because it provides visibility into the traffic that is not flowing. Very helpful for troubleshooting. The limit (a rate limit max of N drops per second sent out in the sFlow datagrams) is the parameter you would set in the CLI. set system sflow drop-monitor-limit 50
Diffstat (limited to 'interface-definitions')
-rw-r--r--interface-definitions/system-sflow.xml.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/interface-definitions/system-sflow.xml.in b/interface-definitions/system-sflow.xml.in
index a53c99937..335181fe1 100644
--- a/interface-definitions/system-sflow.xml.in
+++ b/interface-definitions/system-sflow.xml.in
@@ -46,6 +46,18 @@
</constraint>
</properties>
</leafNode>
+ <leafNode name="drop-monitor-limit">
+ <properties>
+ <help>Export headers of dropped by kernel packets</help>
+ <valueHelp>
+ <format>u32:1-65535</format>
+ <description>Maximum rate limit of N drops per second send out in the sFlow datagrams</description>
+ </valueHelp>
+ <constraint>
+ <validator name="numeric" argument="--range 1-65535"/>
+ </constraint>
+ </properties>
+ </leafNode>
#include <include/generic-interface-multi.xml.i>
<leafNode name="polling">
<properties>