Monitor network metrics
In Red Hat OpenStack Services on OpenShift (RHOSO) environments, you can use Red Hat OpenShift Container Platform (RHOCP) observability features and the RHOSO Telemetry service to access metrics for many aspects of your RHOSO deployment.
The Telemetry service includes Ceilometer and Prometheus.
Prometheus collects metrics from various components. It scrapes exporter endpoints on data plane nodes and control plane pods. You can configure Prometheus to drive a variety of functions including data logging, metrics viewing and queries on the RHOCP Observability dashboard, alarms, and autoscaling.
The RHOSO OpenStack network exporter (openstack-network-exporter) is a Prometheus exporter that runs on data plane nodes and control plane pods and collects OVN, OVS, and OVS-DPDK networking metrics to be scraped by Prometheus.
The RHOSO OpenStack network exporter collects a variety of metrics by default. You can access them through the RHOCP console dashboards. You can also scrape the network exporter endpoints with tools such as curl.
In addition to the default metrics collection, you can enable and disable the collection of extended metrics sets.
Available network metrics Copy linkLink copied!
The network exporter exposes OVN Controller metrics, OVS metrics, and OVS-DPDK PMD metrics. For example:
- OVN southbound database server metrics examples
-
- ovn_raft_cluster_server_vote: A metric with a constant '1' value labeled by database name, cluster uuid, server uuid and vote.
- ovn_raft_cluster_inbound_connections_total: total Number of inbound connections to the server labeled by database name, cluster uuid, and server uuid.
- ovn_raft_cluster_leader: Value 1.0 if the server is the cluster leader for the given database or 0.0 if it is not, labeled by database name, cluster uuid, and server uuid.
- OVN northd metrics examples
-
- ovn_northd_pstream_open_total: Number of times that passive connections were opened for the remote peer to connect.
- ovn_northd_txn_aborted_total: Number of times the OVSDB transaction has been aborted.
- OVN Controller metrics examples
-
- ovnc_lflow_run: The number of times ovn-controller translated the Logical_Flow table in the OVN SB database into OpenFlow flows in the interval.
- ovnc_txn_error: number of times the OVSDB transaction has thrown an error.
- OVN logical router and logical router port metrics examples
-
- ovnc_router_port_traffic_pkts: Number of packets transmitted and received by a logical router port labeled by the logical data path number and the logical port number.
- ovnc_router_port_traffic_bytes: Number of bytes transmitted and received by a logical router port labeled by the logical data path number and the logical port number
- OVS metrics examples
-
- ovs_bridge_port_count: Number of ports in a bridge, labeled by bridge name
- ovs_bridge_flow_count: Number of OpenFlow rules configured on a bridge, labeled by bridge name
- OVS-DPDK PMD metrics examples
-
- ovs_pmd_tx_packets: Rate of PMD packets transmits during the interval
- ovs_pmd_rx_packets: Rate of PMD packets received during the interval
You can view all of the available metrics and descriptions by running curl commands on a Compute node or control plane pod. For more information, see Query live network metrics with curl.
Access network metrics snapshots with the RHOCP console Copy linkLink copied!
In Red Hat OpenStack Services on OpenShift (RHOSO) environments, you can view changes to a subset of the available networking metrics in charts on the RHOCP Console.
Before you begin Copy linkLink copied!
- You have access to the RHOCP console as a
cluster-adminuser. For more information about RHOCP dashboards, see Reviewing monitoring dashboards as a cluster administrator in the RHOCP Monitoring Guide.
Procedure Copy linkLink copied!
-
On the RHOCP Console, go to
Observe > Dashboards. -
Choose
Dashboard > Openstack/Openstack Network Exporter. - (Optional) Select a Compute node from the Instance menu.
- (Optional) Select a Time Range and Refresh Interval.
Query live network metrics with curl Copy linkLink copied!
The OpenStack network exporter pushes metrics to endpoints. You can log in to a Compute node and use the curl command to get metrics from those endpoints.
Before you begin Copy linkLink copied!
- The administrator has created a project for you and has provided you with a
clouds.yamlfile for you to access the cloud. - The
python-openstackclientpackage is installed on your workstation.$ dnf list installed python-openstackclient - You can log in to Compute nodes.
Procedure Copy linkLink copied!
Enable and disable extended PMD metrics Copy linkLink copied!
Enable extended poll mode driver (PMD) metrics to debug your RHOSO networks, and then disable the metrics when you are finished.
Before you begin Copy linkLink copied!
- You can log in to Compute nodes as
root.
About this task Copy linkLink copied!
Extended PMD metrics collection is disabled by default because PMD metrics collection can increase CPU load and impact performance.