1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/observability-ovs-sampling-flags.adoc
2025-01-07 14:05:49 +00:00

38 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * networking/ovn_kubernetes_network_provider/ovn-kubernetes-troubleshooting-sources.adoc
:_mod-docs-content-type: REFERENCE
[id="observability-ovs-sampling-flags_{context}"]
= OVN-Kubernetes network traffic with OVS sampling flags
The following flags are available to view OVN-Kubernetes network traffic by using the CLI. Append these flags to the following syntax in your terminal after you have opened a bash shell inside of the `ovnkube-node` pod:
.Command syntax
[source,terminal]
----
# /usr/bin/ovnkube-observ <flag>
----
[options="header",cols="1,3"]
|===
| Flag | Description
| `-h` | Returns a complete list flags that can be used with the `usr/bin/ovnkube-observ` command.
`
|`-add-ovs-collector` | Add OVS collector to enable sampling. Use with caution. Make sure no one else is using observability.
|`-enable-enrichment` | Enrich samples with NBDB data. Defaults to `true`.
|`-filter-dst-ip` | Filter only packets to a given destination IP.
|`-filter-src-ip` | Filters only packets from a given source IP.
|`-log-cookie` | Print raw sample cookie with psample group_id.
|`-output-file` | Output file to write the samples to.
|`-print-full-packet` | Print full received packet. When false, only source and destination IPs are printed with every sample.
|===