Skip to content

Commit ddd80a1

Browse files
committed
OSDOCS-11625:Viewing Network events in Network Observability
1 parent 6e028b5 commit ddd80a1

File tree

3 files changed

+91
-0
lines changed

3 files changed

+91
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Module included in the following assemblies:
2+
//
3+
// network_observability/observing-network-traffic.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="network-observability-networking-events-overview_{context}"]
7+
= OVN Kubernetes networking events
8+
:FeatureName: Viewing `NetworkEvents`
9+
include::snippets/technology-preview.adoc[]
10+
11+
You use network event tracking in Network Observability to gain insight into OVN-Kubernetes events, including network policies, admin network policies, and egress firewalls. You can use the insights from tracking network events to help with the following:
12+
13+
* Network monitoring: Monitor allowed and blocked traffic, detecting whether packets are allowed or blocked based on network policies and admin network policies.
14+
15+
* Network security: You can track outbound traffic and see whether it adheres to egress firewall rules. Detect unauthorized outbound connections and flag outbound traffic that violates egress rules.
16+
17+
See the _Additional resources_ in this section for more information about enabling and working with this view.
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * network_observability/observing-network-traffic.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="network-observability-viewing-network-events_{context}"]
7+
= Viewing network events
8+
:FeatureName: Viewing `NetworkEvents`
9+
include::snippets/technology-preview.adoc[]
10+
11+
You can view network events, such as network flows that are dropped or allowed by a network policy, by editing the `FlowCollector` to the specifications in the following YAML example.
12+
13+
.Prerequisites
14+
* Must have the `OVNObservability` enabled by enabling the `TechPreviewNoUpgrade` feature set in the `FeatureGate` CR named `cluster`. For more information, see "Enabling feature sets using the CLI" and "Checking OVN-Kubernetes network traffic with OVS sampling using the CLI" in the "Additional resources" of this section.
15+
16+
.Procedure
17+
. In the web console, navigate to *Operators* -> *Installed Operators*.
18+
. In the *Provided APIs* heading for the *NetObserv Operator*, select *Flow Collector*.
19+
. Select *cluster*, and then select the *YAML* tab.
20+
. Configure the `FlowCollector` custom resource to enable viewing `NetworkEvents`, for example:
21+
+
22+
[id="network-observability-flowcollector-configuring-networkevents{context}"]
23+
.Example `FlowCollector` configuration
24+
[source, yaml]
25+
----
26+
apiVersion: flows.netobserv.io/v1beta2
27+
kind: FlowCollector
28+
metadata:
29+
name: cluster
30+
spec:
31+
agent:
32+
type: eBPF
33+
ebpf:
34+
sampling: 1 <1>
35+
privileged: true <2>
36+
features:
37+
- "NetworkEvents"
38+
----
39+
<1> The `sampling` parameter is set to a value of 1 so that all network events are captured.
40+
<2> The `privileged` parameter is set to `true` because the `OVN observability` library needs to access local OVS socket and OVN databases
41+
42+
.Verification
43+
. Navigate to the *Network Traffic* view and select the *Traffic flows* table.
44+
. You should see the new column, *Network Events*, where you can view information about impacts that network policies, admin policies, and egress firewalls have on network flows. Here are some examples of the kinds of events you could see in this column:
45+
+
46+
.Examples of Network Events output
47+
[source,text]
48+
----
49+
Dropped by cluster multicast policy, direction Ingress
50+
----
51+
+
52+
[source,text]
53+
----
54+
Allowed by network policy iperf.iperf3-server-access-egress, direction Egress
55+
----
56+
+
57+
[source,text]
58+
----
59+
Allowed by admin network policy allow-egress-iperf, direction Egress
60+
----

observability/network_observability/observing-network-traffic.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ include::modules/network-observability-flow-filter-parameters.adoc[leveloffset=+
4141
* xref:../../observability/network_observability/metrics-alerts-dashboards.adoc#network-observability-metrics_metrics-dashboards-alerts[Network Observability metrics]
4242
* xref:../../observability/network_observability/network-observability-operator-monitoring.adoc#network-observability-health-dashboard-overview_network_observability[Health dashboards]
4343
44+
include::modules/network-observability-networking-events-overview.adoc[leveloffset=+2]
45+
[role="_additional-resources"]
46+
.Additional resources
47+
* xref:../../observability/network_observability/observing-network-traffic.adoc#network-observability-viewing-network-events_nw-observe-network-traffic[Viewing network events]
48+
4449
//Traffic flows
4550
include::modules/network-observability-trafficflow.adoc[leveloffset=+1]
4651
include::modules/network-observability-working-with-trafficflow.adoc[leveloffset=+2]
@@ -52,6 +57,15 @@ include::modules/network-observability-RTT.adoc[leveloffset=+2]
5257
include::modules/network-observability-histogram-trafficflow.adoc[leveloffset=+2]
5358
include::modules/network-observability-working-with-zones.adoc[leveloffset=+2]
5459
include::modules/network-observability-filtering-ebpf-rule.adoc[leveloffset=+2]
60+
include::modules/network-observability-viewing-network-events.adoc[leveloffset=+2]
61+
62+
[role="_additional-resources"]
63+
.Additional resources
64+
* xref:../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling-features-cli_nodes-cluster-enabling[Enabling feature sets using the CLI]
65+
//Temp link until merge reconciliation
66+
* link:https://docs.openshift.com/container-platform/4.18/networking/ovn_kubernetes_network_provider/ovn-kubernetes-troubleshooting-sources.html#nw-ovn-kubernetes-observability_ovn-kubernetes-sources-of-troubleshooting-information[Checking OVN-Kubernetes network traffic with OVS sampling using the CLI]
67+
68+
// * xr3f:../networking/ovn_kubernetes_network_provider/ovn-kubernetes-troubleshooting-sources.adoc#nw-ovn-kubernetes-observability_ovn-kubernetes-sources-of-troubleshooting-information[Checking OVN-Kubernetes network traffic with OVS sampling using the CLI]
5569
5670
//Topology
5771
include::modules/network-observability-topology.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)