0
VyOS with Host sFlow agent describes support for streaming sFlow telemetry added to the open source
VyOS router operating system. This article describes how to install analytics software on a VyOS router by configuring a container.
vyos@vyos:~$ add container image sflow/ddos-protect
First, download the
sflow/ddos-protect image.
vyos@vyos:~$ mkdir -m 777 /config/sflow-rt
Create a directory to store persistent container state.
set container name sflow-rt image sflow/ddos-protect
set container name sflow-rt allow-host-networks
set container name sflow-rt arguments '-Dhttp.hostname=10.0.0.240'
set container name sflow-rt environment RTMEM value 200M
set container name sflow-rt memory 0
set container name sflow-rt volume store source /config/sflow-rt
set container name sflow-rt volume store destination /sflow-rt/store
Configure a container to run the image. The
RMEM environment variable setting limits the amount of memory that the container will use to
200M bytes. The
-Dhttp.hostname argument sets the internal web server to listen on management address,
10.0.0.240, assigned to
eth0 on this router. The container has is no built-in authentication, so access needs to be limited using an ACL or through a reverse proxy - see
Download and install.
set system sflow interface eth0
set system sflow interface eth1
set system sflow interface Continue reading