Port Filter Configuration

The Sysdig Cloud agent can be configured to either prevent reporting for specific application ports or enable enhanced reporting for your custom client/server transactions. 

To enable port filtering on each installed host, simply edit the agent's user settings configuration file:

/opt/draios/etc/dragent.yaml

And add the parameters shown below (with example port numbers) then restart the agent at the shell with service dragent restart 

For more information on adding parameters to a container agent's configuration file, see the FAQ: How-can-I-edit-the-agent-s-configuration-file?

 

Blacklist Network Traffic

To block metrics for unimportant network port(s) add the blacklisted_ports: parameter and one or more port numbers indented with two spaces and a hyphen:

blacklisted_ports:
  - 6666
  - 6379

 

Add Custom Application Ports

The agent's default configuration supports a list of well-known client/server protocols for which Sysdig Cloud can report transaction specific metrics such as response time and bytes transferred for each transaction. To add a your own custom server port to this list use known_ports: 

known_ports:
  - 6379
  - 27017

 

Note that if a port is blacklisted while simultaneously being listed under the known_ports parameter, blacklisting will take precedence and no metrics will be reported. 

The default list of supported ports can be found in the agent's settings default configuration file: /opt/draios/etc/dragent.default.yaml.  However, this default file should not be modified since it will be overridden for any subsequent agent upgrades. Always modify the user settings configuration file /opt/draios/etc/dragent.yaml for all custom entries and settings overrides.

 

Example dragent.yaml file:

customerid: 831f3-Your-Access-Key-9401
tags: local:nyc,acct:dev,svc:db
known_ports:
  - 6379
blacklisted_ports:
  - 6666
Have more questions? Submit a request