Gadget filetop
filetop shows reads and writes by file, with container details.
The following parameters are supported:
- interval: Output interval, in seconds. (default 1)
- max_rows: Maximum rows to print. (default 20)
- sort_by: The field to sort the results by (all,reads,writes,rbytes,wbytes). (default all)
- pid: Show all files. (default false, i.e. show regular files only)
Example CR
apiVersion: gadget.kinvolk.io/v1alpha1
kind: Trace
metadata:
name: filetop
namespace: gadget
spec:
node: ubuntu-hirsute
gadget: filetop
runMode: Manual
outputMode: Stream
filter:
namespace: default
Operations
start
Start filetop gadget
$ kubectl annotate -n gadget trace/filetop \
gadget.kinvolk.io/operation=start
stop
Stop filetop gadget
$ kubectl annotate -n gadget trace/filetop \
gadget.kinvolk.io/operation=stop
Output Modes
- Stream