mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
OSDOCS-17453 [NETOBSERV] Module short descriptions for metrics-alerts-dashboards.adoc
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
32845c55ed
commit
f37896ba5e
@@ -6,7 +6,8 @@
|
||||
[id="network-observability-configuring-custom-metrics_{context}"]
|
||||
= Configuring custom metrics by using FlowMetric API
|
||||
|
||||
You can configure the `FlowMetric` API to create custom metrics by using flowlogs data fields as Prometheus labels. You can add multiple `FlowMetric` resources to a project to see multiple dashboard views.
|
||||
[role="_abstract"]
|
||||
Configure the `FlowMetric` API to create custom Prometheus metrics by mapping flow log fields as labels to meet specific monitoring needs.
|
||||
|
||||
.Procedure
|
||||
|
||||
@@ -17,8 +18,7 @@ You can configure the `FlowMetric` API to create custom metrics by using flowlog
|
||||
. Configure the `FlowMetric` resource, similar to the following sample configurations:
|
||||
+
|
||||
.Generate a metric that tracks ingress bytes received from cluster external sources
|
||||
[%collapsible]
|
||||
====
|
||||
|
||||
[source,yaml]
|
||||
----
|
||||
apiVersion: flows.netobserv.io/v1alpha1
|
||||
@@ -46,11 +46,9 @@ spec:
|
||||
.Verification
|
||||
. Once the pods refresh, navigate to *Observe* -> *Metrics*.
|
||||
. In the *Expression* field, type the metric name to view the corresponding result. You can also enter an expression, such as `topk(5, sum(rate(netobserv_cluster_external_ingress_bytes_total{DstK8S_Namespace="my-namespace"}[2m])) by (DstK8S_HostName, DstK8S_OwnerName, DstK8S_OwnerType))`
|
||||
====
|
||||
+
|
||||
.Show RTT latency for cluster external ingress traffic
|
||||
[%collapsible]
|
||||
====
|
||||
|
||||
[source,yaml]
|
||||
----
|
||||
apiVersion: flows.netobserv.io/v1alpha1
|
||||
@@ -80,7 +78,6 @@ spec:
|
||||
.Verification
|
||||
. Once the pods refresh, navigate to *Observe* -> *Metrics*.
|
||||
. In the *Expression* field, you can type the metric name to view the corresponding result.
|
||||
====
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,24 +6,28 @@
|
||||
[id="network-observability-creating-metrics-network-events_{context}"]
|
||||
= Creating metrics from nested or array fields in the Traffic flows table
|
||||
|
||||
[role="_abstract"]
|
||||
Create a `FlowMetric` custom resource to generate metrics for nested or array fields in the *Traffic flows* table, such as *Network events* or *Interfaces*.
|
||||
|
||||
:FeatureName: OVN Observability / Viewing `NetworkEvents`
|
||||
include::snippets/technology-preview.adoc[]
|
||||
[IMPORTANT]
|
||||
====
|
||||
OVN Observability and the ability to view and track network events is available only in {product-title} 4.17 and 4.18.
|
||||
OVN Observability and the ability to view and track network events is available only in {product-title} 4.17 and 4.18.
|
||||
====
|
||||
You can create a `FlowMetric` resource to generate metrics for nested or array fields in the *Traffic flows* table, such as *Network events* or *Interfaces*. The following example shows how to generate metrics from the *Network events* field for network policy events.
|
||||
|
||||
.Prerequsities
|
||||
* Enable `NetworkEvents feature`. See the Additional resources for how to do this.
|
||||
* A network policy specified.
|
||||
The following example shows how to generate metrics from the *Network events* field for network policy events.
|
||||
|
||||
.Prerequisites
|
||||
* Enable `NetworkEvents feature`. See the Additional resources for how to do this.
|
||||
* A network policy specified.
|
||||
|
||||
.Procedure
|
||||
. In the web console, navigate to *Ecosystem* -> *Installed Operators*.
|
||||
. In the *Provided APIs* heading for the *NetObserv Operator*, select *FlowMetric*.
|
||||
. In the *Project* dropdown list, select the project of the Network Observability Operator instance.
|
||||
. In the *Project* dropdown list, select the project of the Network Observability Operator instance.
|
||||
. Click *Create FlowMetric*.
|
||||
. Create `FlowMetric` resources to add the following configurations:
|
||||
. Create `FlowMetric` resources to add the following configurations:
|
||||
+
|
||||
.Configuration counting network policy events per policy name and namespace
|
||||
[source,yaml]
|
||||
@@ -49,8 +53,8 @@ spec:
|
||||
----
|
||||
<1> These labels represent the nested fields for *Network Events* from the *Traffic flows* table. Each network event has a specific type, namespace, name, action, and direction. You can alternatively specify the `Interfaces` if `NetworkEvents` is unavailable in your {product-title} version.
|
||||
<2> Optional: You can choose to represent a field that contains a list of items as distinct items.
|
||||
<3> Optional: You can rename the fields in Prometheus.
|
||||
<3> Optional: You can rename the fields in Prometheus.
|
||||
|
||||
.Verification
|
||||
. In the web console, navigate to *Observe* -> *Dashboards* and scroll down to see the *Network Policy* tab.
|
||||
. You should begin seeing metrics filter in based on the metric you created along with the network policy specifications.
|
||||
. In the web console, navigate to *Observe* -> *Dashboards* and scroll down to see the *Network Policy* tab.
|
||||
. You should begin seeing metrics filter in based on the metric you created along with the network policy specifications.
|
||||
|
||||
@@ -6,4 +6,7 @@
|
||||
[id="network-observability-custom-metrics_{context}"]
|
||||
= Custom metrics
|
||||
|
||||
You can create custom metrics out of the flowlogs data using the `FlowMetric` API. In every flowlogs data that is collected, there are several fields labeled per log, such as source name and destination name. These fields can be leveraged as Prometheus labels to enable the customization of cluster information on your dashboard.
|
||||
[role="_abstract"]
|
||||
Define custom metrics from flowlog data using the `FlowMetric` API, leveraging log fields as Prometheus labels to customize dashboard information and monitor specific cluster data.
|
||||
|
||||
In every flowlogs data that is collected, there are several fields labeled per log, such as source name and destination name. These fields can be leveraged as Prometheus labels to enable the customization of cluster information on your dashboard.
|
||||
@@ -6,7 +6,10 @@
|
||||
[id="network-observability-custom-charts-flowmetrics_{context}"]
|
||||
= Configuring custom charts using FlowMetric API
|
||||
|
||||
You can generate charts for dashboards in the {product-title} web console, which you can view as an administrator in the *Dashboard* menu by defining the `charts` section of the `FlowMetric` resource.
|
||||
[role="_abstract"]
|
||||
Generate custom charts for {product-title} web console dashboards by defining the charts section of the `FlowMetric` custom resource.
|
||||
|
||||
You can view custom charts as an administrator in the *Dashboard* menu.
|
||||
|
||||
.Procedure
|
||||
. In the web console, navigate to *Ecosystem* -> *Installed Operators*.
|
||||
@@ -14,10 +17,8 @@ You can generate charts for dashboards in the {product-title} web console, which
|
||||
. In the *Project:* dropdown list, select the project of the Network Observability Operator instance.
|
||||
. Click *Create FlowMetric*.
|
||||
. Configure the `FlowMetric` resource, similar to the following sample configurations:
|
||||
|
||||
+
|
||||
.Chart for tracking ingress bytes received from cluster external sources
|
||||
[%collapsible]
|
||||
====
|
||||
[source,yaml]
|
||||
----
|
||||
apiVersion: flows.netobserv.io/v1alpha1
|
||||
@@ -54,11 +55,8 @@ metadata:
|
||||
* A timeseries graph showing the same metric per destination workload
|
||||
|
||||
For more information about the query language, refer to the link:https://prometheus.io/docs/prometheus/latest/querying/basics/[Prometheus documentation].
|
||||
====
|
||||
|
||||
.Chart for RTT latency for cluster external ingress traffic
|
||||
[%collapsible]
|
||||
====
|
||||
[source,yaml]
|
||||
----
|
||||
apiVersion: flows.netobserv.io/v1alpha1
|
||||
@@ -110,4 +108,4 @@ promQL: "(sum(rate($METRIC_sum{DstK8S_Namespace!=\"\"}[2m])) by (DstK8S_Namespac
|
||||
. Search for the *NetObserv / Main* dashboard. View the new panel under the *NetObserv / Main* dashboard, or optionally a dashboard name that you create.
|
||||
|
||||
For more information about the query language, refer to the link:https://prometheus.io/docs/prometheus/latest/querying/basics/[Prometheus documentation].
|
||||
====
|
||||
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
[id="network-observability-netobserv-dashboard-high-traffic-alert_{context}"]
|
||||
= Creating alerts
|
||||
|
||||
You can create custom alerting rules for the Netobserv dashboard metrics to trigger alerts when some defined conditions are met.
|
||||
[role="_abstract"]
|
||||
Create custom `AlertingRule` resources based on `Netobserv` dashboard metrics to define conditions that trigger alerts in the {product-title} console.
|
||||
|
||||
.Prerequisites
|
||||
|
||||
|
||||
@@ -6,6 +6,11 @@
|
||||
[id="network-observability-metrics_{context}"]
|
||||
= Network observability metrics
|
||||
|
||||
[role="_abstract"]
|
||||
Review the comprehensive list of network observability metrics, prefixed by `netobserv_`, which you can configure in the `FlowCollector` resource and use to monitor traffic and create Prometheus alerts.
|
||||
|
||||
Metrics generated by the `flowlogs-pipeline` are configurable in the `spec.processor.metrics.includeList` of the `FlowCollector` custom resource to add or remove metrics.
|
||||
|
||||
You can also create alerts by using the `includeList` metrics in Prometheus rules, as shown in the example "Creating alerts".
|
||||
|
||||
When looking for these metrics in Prometheus, such as in the Console through *Observe* -> *Metrics*, or when defining alerts, all the metrics names are prefixed with `netobserv_`. For example, `netobserv_namespace_flows_total`. Available metrics names are as follows:
|
||||
|
||||
@@ -2,8 +2,12 @@
|
||||
//
|
||||
// network_observability/metrics-alerts-dashboards.adoc
|
||||
|
||||
////
|
||||
:_mod-docs-content-type: CONCEPT
|
||||
[id="network-observability-predefined-metrics_{context}"]
|
||||
= Predefined metrics
|
||||
|
||||
Metrics generated by the `flowlogs-pipeline` are configurable in the `spec.processor.metrics.includeList` of the `FlowCollector` custom resource to add or remove metrics.
|
||||
Metrics generated by the `flowlogs-pipeline` are configurable in the `spec.processor.metrics.includeList` of the `FlowCollector` custom resource to add or remove metrics.
|
||||
////
|
||||
|
||||
//moved to network-observability-metrics-names.adoc
|
||||
@@ -6,7 +6,8 @@
|
||||
[id="network-observability-tcp-flag-syn-flood_{context}"]
|
||||
= Detecting SYN flooding using the FlowMetric API and TCP flags
|
||||
|
||||
You can create an `AlertingRule` resouce to alert for SYN flooding.
|
||||
[role="_abstract"]
|
||||
Deploy a custom `AlertingRule` and `FlowMetric` configuration to monitor TCP flags, enabling real-time detection and alerting for SYN flooding attacks on the cluster.
|
||||
|
||||
.Procedure
|
||||
. In the web console, navigate to *Ecosystem* -> *Installed Operators*.
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
[id="network-observability-viewing-dashboards_{context}"]
|
||||
= Viewing network observability metrics dashboards
|
||||
|
||||
On the *Overview* tab in the {product-title} console, you can view the overall aggregated metrics of the network traffic flow on the cluster. You can choose to display the information by node, namespace, owner, pod, and service. You can also use filters and display options to further refine the metrics.
|
||||
[role="_abstract"]
|
||||
View network observability metrics dashboards using the *Overview* tab in the {product-title} console to monitor overall traffic flow and system health, with options to filter metrics by node, namespace, owner, pod, and service.
|
||||
|
||||
.Procedure
|
||||
. In the web console *Observe* -> *Dashboards*, select the *Netobserv* dashboard.
|
||||
|
||||
Reference in New Issue
Block a user