---
# Code generated by 'make generate-documentation'. DO NOT EDIT.
title: Gadget process-collector
---

The process-collector gadget gathers information about running processes

### Example CR

```yaml
apiVersion: gadget.kinvolk.io/v1alpha1
kind: Trace
metadata:
  name: process-collector
  namespace: gadget
spec:
  node: minikube
  gadget: process-collector
  filter:
    namespace: default
    labels:
      role: demo
  runMode: Manual
  outputMode: Status
```

### Operations


#### collect

Create a snapshot of the currently running processes. Once taken, the snapshot is not updated automatically. However one can call the collect operation again at any time to update the snapshot.

```bash
$ kubectl annotate -n gadget trace/process-collector \
    gadget.kinvolk.io/operation=collect
```

### Output Modes

* Status
