Monitor network I/O
If you’re particularly interested in network activity, you can create a configuration that focuses on that:
# Create a network-focused configuration
$ cat << EOF > networkconfig.c4m
# Define a report template focusing on network
report_template network_focus {
key._OP_TCP_SOCKET_INFO.use = true
key._OP_UDP_SOCKET_INFO.use = true
key._OP_IPV4_ROUTES.use = true
key._OP_IPV6_ROUTES.use = true
key._OP_IPV4_INTERFACES.use = true
key._OP_ARP_TABLE.use = true
key._PROCESS_PID.use = true
key._TIMESTAMP.use = true
}
# Use this template for exec operations
outconf.exec.report_template: "network_focus"
EOF
# Load the configuration
$ chalk load networkconfig.c4m
# Run a command that generates network activity
$ chalk exec -- curl example.com
This configuration will produce reports that focus specifically on network-related information, which can be valuable for monitoring network connections and activity.