Skip to content

Commit bffd144

Browse files
committed
use present
1 parent a66d3c1 commit bffd144

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

content/posts/2025-01-23-cli_whats_new_1.8.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ authors: [jpinsonneau]
1818
------------------------------------------------------------------------
1919
```
2020

21-
Since we [introduced the Network Observability CLI](./2024-07-25-cli.md), numerous features have been added. This article will cover the improvements in version 1.8 and provide some concrete examples.
21+
Since we [introduced the Network Observability CLI](./2024-07-25-cli.md), numerous features have been added. This article covers the improvements in version 1.8 and provide some concrete examples.
2222

2323
## New Options Available
2424
This update adds several options to the CLI, covering more scenarios and enabling scripting on top of the tool.
2525

2626
### Operate in the Background
2727
The `--background` option allows you to start a flow or packet capture without connecting your terminal to the **collector pod**. This enables you to let the capture run in the background while you work on something else.
2828
You can check the capture's progress using the `follow` command.
29-
The capture will end automatically when either maximum bytes (50MB) or time (5m) is reached. You can update these accordingly using the `--max-bytes` and `--max-time` options.
29+
The capture is ending automatically when either maximum bytes (50MB) or time (5m) is reached. You can update these accordingly using the `--max-bytes` and `--max-time` options.
3030
The `stop` command also allows you to end the capture manually.
3131
In both cases, the collector pod keeps running to let you download the output locally using the `copy` command.
3232
Once the job is complete, you `cleanup` everything.
@@ -44,16 +44,16 @@ oc netobserv cleanup # Remove all
4444
```
4545

4646
### Customizable Namespace
47-
You can now customize the capture namespace using the `NETOBSERV_NAMESPACE` environment variable. When the CLI starts, it automatically checks if this namespace exists and will stop if it finds any conflict with a pending capture. This is particularly useful if you want to run captures in parallel.
47+
You can now customize the capture namespace using the `NETOBSERV_NAMESPACE` environment variable. When the CLI starts, it automatically checks if this namespace exists and stops if it finds any conflict with a pending capture. This is particularly useful if you want to run captures in parallel.
4848

4949
```sh
5050
NETOBSERV_NAMESPACE=my_ns oc netobserv [flows|packets|metrics|follow|stop|copy|cleanup]
5151
```
5252

5353
### Subnets Labelling (for OCP clusters)
54-
The tool can now read OpenShift configurations from `cluster-config-v1` and `network` to identify **Machine**, **Pods**, and **Services** subnets using the `--get-subnets` option. This will automatically add `SrcSubnetLabel` and `DstSubnetLabel` to your flows.
54+
The tool can now read OpenShift configurations from `cluster-config-v1` and `network` to identify **Machine**, **Pods**, and **Services** subnets using the `--get-subnets` option. This automatically adds `SrcSubnetLabel` and `DstSubnetLabel` to your flows.
5555

56-
You will see subnets being configured during the creation of the agents:
56+
You can see subnets being configured during the creation of the agents:
5757
```sh
5858
creating flow-capture agents:
5959
opt: get_subnets, value: true
@@ -81,7 +81,7 @@ oc netobserv flows \ # Capture flows
8181
or --protocol=UDP # or UDP
8282
```
8383

84-
You will see filters being validated during the creation of the agents:
84+
You can see filters being validated during the creation of the agents:
8585
```sh
8686
creating flow-capture agents:
8787
opt: filter_protocol, value: TCP
@@ -97,7 +97,7 @@ You can add up to 16 sets of filters separated by the `or` operator to create mu
9797
### Regular Expressions Usage
9898
If you need to filter on enriched content beyond the agent-level filters, you can use **regexes** to match any field/value pair. To keep only the traffic from OpenShift namespaces, for example, you can use `--regexes=SrcK8S_Namespace~openshift.*`.
9999

100-
You will see regexes being validated during the creation of the agents:
100+
You see regexes being validated during the creation of the agents:
101101
```sh
102102
creating flow-capture agents:
103103
opt: filter_regexes, value: SrcK8S_Namespace~openshift.*
@@ -109,7 +109,7 @@ key: SrcK8S_Namespace value: openshift.*
109109
Regexes are comma-separated, so you can use multiple at once, such as `--regexes=SrcK8S_Namespace~my-ns,SrcK8S_Name~my-app`. Refer to the [flows format](https://github.com/netobserv/network-observability-operator/blob/main/docs/flows-format.adoc) to see the possible fields.
110110

111111
## Unified Collector User Experience
112-
All filtering capabilities are now supported for **packets** capture and will display enriched data while collecting. This improvement was made possible by introducing the [flowlogs-pipeline](https://github.com/netobserv/flowlogs-pipeline) component inside [eBPF agents](https://github.com/netobserv/netobserv-ebpf-agent), which parses packets and generates flows from them.
112+
All filtering capabilities are now supported for **packets** capture and displays enriched data while collecting. This improvement was made possible by introducing the [flowlogs-pipeline](https://github.com/netobserv/flowlogs-pipeline) component inside [eBPF agents](https://github.com/netobserv/netobserv-ebpf-agent), which parses packets and generates flows from them.
113113

114114
Run a packet capture on a specific port for example:
115115
```sh
@@ -129,12 +129,12 @@ oc netobserv metrics --enable_pktdrop
129129
```
130130
to focus only on drops.
131131

132-
On top of the features, you can use all the filtering capabilities mentioned above to focus on what you're looking for. A `NetObserv / On Demand` dashboard will be automatically created, showing the results.
132+
On top of the features, you can use all the filtering capabilities mentioned above to focus on what you're looking for. A `NetObserv / On Demand` dashboard is automatically created, showing the results.
133133
134134
![dashboard]({page.image('cli-whats-new-1-8/dashboard.png')})
135135
136136
In this mode, the maximum bytes or time options are ignored since there is no collector pod involved. Only the eBPF agents are deployed.
137-
You will need to run `stop` or `cleanup` command to remove everything.
137+
You need to run `stop` or `cleanup` command to remove everything.
138138
139139
## Help!
140140

0 commit comments

Comments
 (0)