github.com/inspektor-gadget/inspektor-gadget@v0.28.1/docs/crds/gadgets/filetop.md (about) 1 --- 2 # Code generated by 'make generate-documentation'. DO NOT EDIT. 3 title: Gadget filetop 4 --- 5 6 filetop shows reads and writes by file, with container details. 7 8 The following parameters are supported: 9 - interval: Output interval, in seconds. (default 1) 10 - max_rows: Maximum rows to print. (default 20) 11 - sort_by: The field to sort the results by (runtime.runtimeName,runtime.containerId,runtime.containerName,runtime.containerImageName,runtime.containerImageDigest,k8s.node,k8s.namespace,k8s.pod,k8s.labels,k8s.container,k8s.hostnetwork,mntns,pid,tid,comm,reads,writes,rbytes,wbytes,T,file). (default -reads,-writes,-rbytes,-wbytes) 12 - all-files: Show all files. (default false, i.e. show regular files only) 13 14 ### Example CR 15 16 ```yaml 17 apiVersion: gadget.kinvolk.io/v1alpha1 18 kind: Trace 19 metadata: 20 name: filetop 21 namespace: gadget 22 spec: 23 node: ubuntu-hirsute 24 gadget: filetop 25 runMode: Manual 26 outputMode: Stream 27 filter: 28 namespace: default 29 ``` 30 31 ### Operations 32 33 34 #### start 35 36 Start filetop gadget 37 38 ```bash 39 $ kubectl annotate -n gadget trace/filetop \ 40 gadget.kinvolk.io/operation=start 41 ``` 42 #### stop 43 44 Stop filetop gadget 45 46 ```bash 47 $ kubectl annotate -n gadget trace/filetop \ 48 gadget.kinvolk.io/operation=stop 49 ``` 50 51 ### Output Modes 52 53 * Stream