You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-9Lines changed: 21 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
# Network Observability CLI
2
2
3
-
network-observability-cli is a lightweight Flowand Packet visualization tool.
3
+
network-observability-cli is a lightweight Flow, Packet and Metrics visualization tool.
4
4
It deploys [NetObserv eBPF agent](https://github.com/netobserv/netobserv-ebpf-agent) on your k8s cluster to collect flows or packets from nodes network interfaces
5
5
and streams data to a local collector for analysis and visualization.
6
6
Output files are generated under `output/flow` and `output/pcap` directories per host name
7
7
8
+
On Openshift environments, you can also capture metrics in your monitoring stack and display a fully configured dashboard.
9
+
8
10
## Prerequisites
9
11
10
12
To run this CLI, you will need:
@@ -44,7 +46,7 @@ USER=netobserv VERSION=dev make images
44
46
Run the following command to start capturing flows, replacing `USER`, `VERSION` and `COMMAND_ARGS` accordingly:
45
47
46
48
```bash
47
-
USER=netobserv VERSION=dev COMMAND_ARGS=br-ex make flows
49
+
USER=netobserv VERSION=dev COMMAND_ARGS=--interfaces=br-ex make flows
48
50
```
49
51
50
52

@@ -107,24 +109,34 @@ or `dbeaver`:
107
109
Run the following command to start capturing packets, replacing `USER`, `VERSION` and `COMMAND_ARGS` accordingly:
108
110
109
111
```bash
110
-
USER=netobserv VERSION=dev COMMAND_ARGS=tcp,80 make packets
112
+
USER=netobserv VERSION=dev COMMAND_ARGS="--protocol=TCP --port=80" make packets
111
113
```
112
114
113
-

114
-
115
-
It will display a table view with latest packets collected and write data under output/pcap directory.
115
+
Similarly to flow capture, it will display a table view with latest flows. However, it will collect packets and write data under output/pcap directory.
116
116
To stop capturing press Ctrl-C.
117
117
118
-
This will write pcap into a single file located in `./output/pcap/<CAPTURE_DATE_TIME>.pcap` that can be opened with Wireshark for example:
118
+
This will write [pcapng](https://wiki.wireshark.org/Development/PcapNg) into a single file located in `./output/pcap/<CAPTURE_DATE_TIME>.pcapng` that can be opened with Wireshark for example:
119
119
120
120

121
121
122
+
### Metrics dashboard (OCP only)
123
+
124
+
Run the following command to start capturing metrics, replacing `USER`, `VERSION` and `COMMAND_ARGS` accordingly:
125
+
```bash
126
+
USER=netobserv VERSION=dev COMMAND_ARGS='--enable_pktdrop="true" --enable_dns="true" --enable_rtt="true"' make metrics
127
+
```
128
+
129
+

130
+
131
+
It will generate a monitoring dashboard called "NetObserv / On Demand" in your Openshift cluster.
132
+
The url to access it is automatically generated from the CLI. Simply click on the link to open the page.
133
+
122
134
### Cleanup
123
135
124
-
The `cleanup` function will automatically remove the eBPF programs when the CLI exits. However you may need to run it manually if an error occurs.
136
+
The `cleanup` function will automatically remove the eBPF programs when the CLI exits. However you may need to run it manually if running in background or an error occurs.
125
137
126
138
```bash
127
-
./commands/netobserv-cleanup
139
+
USER=netobserv VERSION=dev make cleanup
128
140
```
129
141
130
142
## Extending OpenShift or Kubernetes CLI with plugins
0 commit comments