summaryrefslogtreecommitdiff
path: root/data/templates/sflow/override.conf.j2
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-03-14 18:45:04 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-03-16 10:17:39 +0000
commit707641f4dc947bce84eeff5499665e1cf76d7806 (patch)
tree98ba75bd3df15a4757a355fa60e69f4e2e0a71f2 /data/templates/sflow/override.conf.j2
parentc5ee06af8cb0b4485d08a2cf1d1e338c74b3fd85 (diff)
downloadvyos-1x-707641f4dc947bce84eeff5499665e1cf76d7806.tar.gz
vyos-1x-707641f4dc947bce84eeff5499665e1cf76d7806.zip
T5086: Add sFlow feature based on hsflowd
Add sFlow feature based on hsflowd According to user reviews, it works more stable and more productive than pmacct I haven't deleted 'pmacct' 'system flow-accounting sflow' yet It could be migrated or deprecated later set system sflow agent-address '192.0.2.14' set system sflow interface 'eth0' set system sflow interface 'eth1' set system sflow polling '30' set system sflow sampling-rate '100' set system sflow server 192.0.2.1 port '6343' set system sflow server 192.0.2.11 port '6343'
Diffstat (limited to 'data/templates/sflow/override.conf.j2')
-rw-r--r--data/templates/sflow/override.conf.j216
1 files changed, 16 insertions, 0 deletions
diff --git a/data/templates/sflow/override.conf.j2 b/data/templates/sflow/override.conf.j2
new file mode 100644
index 000000000..f2a982528
--- /dev/null
+++ b/data/templates/sflow/override.conf.j2
@@ -0,0 +1,16 @@
+[Unit]
+After=
+After=vyos-router.service
+ConditionPathExists=
+ConditionPathExists=/run/sflow/hsflowd.conf
+
+[Service]
+EnvironmentFile=
+ExecStart=
+ExecStart=/usr/sbin/hsflowd -m %m -d -f /run/sflow/hsflowd.conf
+WorkingDirectory=
+WorkingDirectory=/run/sflow
+PIDFile=
+PIDFile=/run/sflow/hsflowd.pid
+Restart=always
+RestartSec=10