skb) or logical parts of the networking stack (e.g., conntrack).
How Collectors Work
Collectors operate during thecollect command phase. When you run retis collect, collectors:
- Install probes at strategic points in the kernel (some collectors)
- Gather data when those probes are triggered
- Generate structured event sections with the collected information
skb collector, for example, doesn’t install probes itself. Instead, it gathers data whenever an skb (socket buffer) is available in probe arguments. If you add a probe on kfree_skb_reason, the skb collector automatically extracts data from the skb argument.
If no collector is explicitly enabled, Retis will try to load all collectors if their individual requirements are met (e.g., the
ovs collector requires the OpenVSwitch kernel module to be loaded).Selecting Collectors
You can control which collectors to use with the--collectors argument:
auto with explicit collectors:
Available Collectors
skb
Extracts packet information from socket buffer structures
skb-tracking
Reports packet tracking IDs for flow reconstruction
skb-drop
Captures packet drop reasons from the kernel
ovs
Tracks packets through OpenVSwitch datapath
nft
Provides insights into Netfilter rules and verdicts
ct
Reports conntrack status and connection information
dev
Collects network device information
ns
Retrieves namespace information
Collector Summary
| Collector | Data Collected | Installs Probes | Event Section |
|---|---|---|---|
| skb | Packet information | No | skb, packet |
| skb-drop | Drop reason | Yes (1) | skb-drop |
| skb-tracking | Packet tracking ID | No* | skb-tracking |
| ovs | OpenVSwitch data | Yes (many) | ovs |
| nft | Nftables context | Yes (1) | nft |
| ct | Conntrack info | No | ct |
| dev | Net device | No | dev |
| ns | Namespace | No | netns |
*Probes for tracking packets are always installed by the Retis core.
Collector-Specific Options
Some collectors provide additional configuration options:skb Collector
The--skb-sections option controls which parts of the socket buffer metadata to retrieve:
retis collect --help for all available sections.
nft Collector
The--nft-verdicts option filters which Netfilter verdicts to report:
ovs Collector
The--ovs-track flag enables USDT probes and packet tracking through OVS userspace:
--ovs-enrich-flows option queries the running OVS daemon for flow information:
Next Steps
Filtering
Learn how to filter events by packet content or metadata
Tracking
Understand how packet tracking works across the stack
