1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/network-observability-packet-drops.adoc

51 lines
2.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * network_observability/observing-network-traffic.adoc
:_mod-docs-content-type: PROCEDURE
[id="network-observability-packet-drops_{context}"]
= Working with packet drops
[role="_abstract"]
Enable packet drop tracking in the Network Observability Operator by configuring the `FlowCollector` resource to monitor and visualize network data loss in the web console.
Packet loss occurs when one or more packets of network flow data fail to reach their destination. You can track these drops by editing the `FlowCollector` to the specifications in the following YAML example.
[IMPORTANT]
====
CPU and memory usage increases when this feature is enabled.
====
.Procedure
. In the web console, navigate to *Ecosystem* -> *Installed Operators*.
. Under the *Provided APIs* heading for the *NetObserv Operator*, select *Flow Collector*.
. Select *cluster*, and then select the *YAML* tab.
. Configure the `FlowCollector` custom resource for packet drops, for example:
+
[id="network-observability-flowcollector-configuring-pkt-drop_{context}"]
.Example `FlowCollector` configuration
[source, yaml]
----
apiVersion: flows.netobserv.io/v1beta2
kind: FlowCollector
metadata:
name: cluster
spec:
namespace: netobserv
agent:
type: eBPF
ebpf:
features:
- PacketDrop <1>
privileged: true <2>
----
<1> You can start reporting the packet drops of each network flow by listing the `PacketDrop` parameter in the `spec.agent.ebpf.features` specification list.
<2> The `spec.agent.ebpf.privileged` specification value must be `true` for packet drop tracking.
.Verification
* When you refresh the *Network Traffic* page, the *Overview*, *Traffic Flow*, and *Topology* views display new information about packet drops:
.. Select new choices in *Manage panels* to choose which graphical visualizations of packet drops to display in the *Overview*.
.. Select new choices in *Manage columns* to choose which packet drop information to display in the *Traffic flows* table.
... In the *Traffic Flows* view, you can also expand the side panel to view more information about packet drops. Host drops are prefixed with `SKB_DROP` and OVS drops are prefixed with `OVS_DROP`.
.. In the *Topology* view, red lines are displayed where drops are present.