Skip to content

Latest commit

 

History

History
180 lines (112 loc) · 12.3 KB

index.md

File metadata and controls

180 lines (112 loc) · 12.3 KB

What's New in Network Observability 1.5

Network Observability 1.5 is the new version of the operator from Red Hat that focuses on providing insights into networking. There's an upstream version that runs on plain Kubernetes, but this blog will focus on using OpenShift Container Platform (OCP) and the OpenShift web console for the user interface.

I will highlight the most important new features of this release so if you want a summary of all the changes including bug fixes, check out the release notes. If you want some background of this product, read the OpenShift documentation and various Red Hat blogs on this topic, including my blog on the previous 1.4 release.

To get started, you should have an OpenShift cluster. You will need to log in with a cluster-admin role. Follow the documentation steps to install Network Observability provided by Red Hat in OperatorHub on the OpenShift web console.

Feature Highlights

Version 1.5 has significant improvements in ease-of-use and a number of features related to graphs and metrics. The Flow Round Trip Time (RTT) feature that was in Technical Preview is now in General Availability (GA), which means it is fully supported.

If you've used Network Observability before, the first thing you might have noticed after installing the operator is that there are two APIs available instead of one (Figure 1).

Network Observability Operator and APIs

Figure 1: Network Observability Operater and APIs

FlowMetrics is a dev preview feature which I will cover at the end, so let's start with FlowCollector.

FlowCollector API

FlowCollector is the heart of network observability. Creating a FlowCollector instance deploys an eBPF agent for generating network flows, optionally supporting Kafka to improve scalability and reliability, a flowlogs pipeline for collecting, enriching, and storing the flow data and metrics, and a UI plugin for OpenShift web console to display graphs, tables, and topology.

In 1.5, the FlowCollector API version was upgraded to flows.netobserv.io/v1beta2 from v1beta1. In web console, the UI or "Flow view" to create an instance gets a facelift. The custom resource has the following top level categories:

  1. Name and Labels
  2. Loki client settings
  3. Console plugin configuration
  4. Namespace
  5. Deployment model
  6. Agent configuration
  7. Processor configuration

The first significant change is in "Loki client settings". When you click and open this, you get the following:

Loki client settings

Figure 2: Loki client settings

One of the new fields is "Mode" where you select how you installed Loki. The most common is "LokiStack", which means you installed the Loki Operator and created a LokiStack instance. Under the "Loki stack" section, make sure the Name matches the LokiStack name you gave it. The nice part is that it will go and figure out the LokiStack gateway URL for you and give it proper authorization.

Parameters are now exposed under "Console plugin configuration", particularly "Quick filters" (Figure 3). Network Observability predefines some filters as defaults which can be changed. While this was possible before, now you can do it in the UI.

Console plugin configuration

Figure 3: Console plugin configuration

Under "Agent configuration", there is no longer an agent type because the only supported agent is eBPF. It is still possible to configure IPFIX through YAML.

In "Processor configuration", the changes are to enable availability zones, cluster ID, and a "Metrics configuration" section to select a list of predefined metrics under the "include list" (Figure 4).

Processor configuration

Figure 4: Processor configuration

The full list of predefined metrics is here. When you include a metric, it stores it in Prometheus and is available as a Prometheus metric prefixed with "netobserv_". For example, if you add the metric namespace_egress_bytes_total, then go to Observe > Metrics and enter the PromQL sum(rate(netobserv_namespace_egress_bytes_total[1m])). This should display a single line that is the sum of the average number of egress bytes over one-minute intervals. Select a refresh time in the upper right dropdown if you want the graph to be updated periodically.

Availability zones and cluster ID will be covered in the traffic flow table section below.

UI Changes and Features

The new features and enhancements will be covered by going over the changes in the Network Observability UI, starting with the three tabs in Observe > Network Traffic, namely Overview, Network Traffic, and Topology.

Overview tab

Graphs for Flow RTT and DNS Tracking, including support for DNS TCP (previously only DNS UDP), were added. There are graphs for:

  • Top 5 and/or top total graph
  • Top 5 average graph using latest metrics or all metrics
  • Top 5 max graph
  • Top 5 90th percentile graph (P90)
  • Top 5 99th percentile graph (P99)
  • Bottom 5 min graph

Manage panels selection

With so many graphs to choose from, the Manage panels dialog, found under "Show advanced options", now provides a simple filter (Figure 5). Click one or more buttons to filter on the selection.

Manage Panels

Figure 5: Manage panels

Graph types

If you click in the upper right corner of the graph, there will be various options depending on the type of graph. For example, the TCP handshake Round Trip Time graph shows a donut chart but can be changed to use a lines graph (Figure 6).

donut graph lines graph

Figure 6: Options - Graph type

Single graph focus

In Overview, it displays all graphs on a scrollable panel. If you click the "Focus" icon in the upper right corner next to , it displays one graph and gives a preview of all the other graphs on a scrollable panel on the right side (Figure 7). If you click a preview graph, it becomes the graph in focus. This feature can also be toggled in the "Display options" dropdown.

single graph focus

Figure 7: Single graph focus

Traffic flows tab

These are the new labels in the flow data.

  1. Differentiated Services Code Point (DSCP)
    This is a 6-bit value in the IP packet header that indicates the priority of a packet to provide quality of service (QoS), particularly for time-sensitive data such as voice and video. The value "Standard" translates to 0 or best effort. In other words, the traffic is not getting any special treatment.

    • Column: DSCP
    • Label: Dscp

flow table - DSCP

Figure 8: DSCP

  1. Availability Zones
    A region defines a geographical area and consists of one or more availability zones. For example, if a region is named us-west-1, then the zones might be us-west-1a, us-west-1b, and us-west-1c, where each zone might have one or more physical data centers.

    • Columns: Source Zone, Destination Zone
    • Labels: SrcK8S_Zone, DstK8S_Zone

flow table - Zone

Figure 9: Availability Zone

  1. Cluster ID
    The cluster ID is the same value shown in the Home > Overview, Details section.

    • Column: Cluster
    • Label: K8S_ClusterName

flow table - Cluster ID

Figure 10: Cluster ID

Manage columns selection

Like the Manage panels dialog, the Manage columns dialog, found under "Show advanced options", alos provides a simple filter (Figure 11). Click one or more buttons to filter on the selection.

Manage Columns

Figure 11: Manage columns

Topology tab

Topology also supports the same data in the Overview graphs for its edge labels, such as P90 (90th percentile) and P99 (99th percentile)

Topology - Display options

Figure 12: Topology changes

Filter

At the top of the screen is the filter used by all three tabs. A dropdown button was added to show recently-used entries and to do auto-completion (Figure 13).

filter

Figure 13: Filter

FlowMetrics API

The FlowMetrics API allows you take any combination of flow data labels and turn it into a Prometheus metric. In other words, you can create your own custom metric and then even create alerts and external notifications based on them. This is a development preview feature. Please be aware that generating too many metrics or not understanding how performance is impacted by querying these metrics can result in over utilization of resources and storage and cause instability.

To create a metric, go to Operators > Installed Operator and for the Network Observability row, click "Flow Metric" in the Provided APIs column (Figure 1). Click the Create FlowMetric button to begin.

Minimally, you need to provide a metric name and specify the type, although you will likely need to use filters and possibly labels. Prometheus provides some best practices on naming. Just remember that the actual Prometheus metric name is prefixed with "netobserv_". There is also information on the various metric types. FlowMetrics only supports Counter and Histogram and not Gauge or Summary.

As an example, let's create a metric that reports the number of bytes coming externally to a namespace of our choosing. To achieve this, use a label for the destination namespace which is called DstK8S_Namespace. The traffic will be considered external if the source name doesn't exist. Enter the following values in the Form view for FlowMetric. Also, make sure you remove the pre-existing filters. Note: This is what you enter in the UI; it is not YAML.

metricName: ingress_external_bytes_total
type: Counter
direction: Ingress
filters:
  field: SrcK8S_Name
  matchType: Absence
  value: <blank>
labels:
  - DstK8S_Namespace

When you create this instance or make any changes to FlowMetric, the flowlogs-pipeline pods will restart automatically. Now go to Observe > Metrics and enter netobserv_ingress_external_bytes_total (don't forget the prefix "netobserv_"). Because of the label, it separates out each destination namespace in its own graph line. Try out the other PromQL queries below.

  1. Graph the number of bytes incoming on namespace "openshift-ingress". You can replace with any namespace. netobserv_ingress_external_bytes_total{DstK8S_Namespace="openshift-ingress"}

  2. In some cases like "openshift-dns", you might get more than one graph line because it's running on multiple pods. Use sum to combine them into one graph line. sum(netobserv_ingress_external_bytes_total{DstK8S_Namespace="openshift-dns"})

  3. Graph the average rate over a 5-minute interval. sum(rate(netobserv_ingress_external_bytes_total{DstK8S_Namespace="openshift-ingress"}[5m]))

Conclusion

Hopefully, you are excited as I am on all the changes in this release. I hope you get the chance to try it out, and let us know what you think! You can always reach the NetObserv team on this discussion board.