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

The network-graph gadget monitors the network activity in the specified pods and records the list of TCP connections and UDP streams.

### Example CR

```yaml
apiVersion: gadget.kinvolk.io/v1alpha1
kind: Trace
metadata:
  name: network-graph
  namespace: gadget
spec:
  node: albantyphoon-worker000003
  gadget: network-graph
  filter:
    namespace: demo
  runMode: Manual
  outputMode: Stream
```

### Operations


#### start

Start network-graph

```bash
$ kubectl annotate -n gadget trace/network-graph \
    gadget.kinvolk.io/operation=start
```
#### stop

Stop network-graph

```bash
$ kubectl annotate -n gadget trace/network-graph \
    gadget.kinvolk.io/operation=stop
```

### Output Modes

* Stream
