You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`networkPolicy` defines network policy settings for Network Observability components isolation.
2653
2655
--
2654
2656
2655
2657
Type::
@@ -2672,7 +2674,7 @@ configuration, you can disable it and install your own instead.
2672
2674
| `boolean`
2673
2675
| Set `enable` to `true` to deploy network policies on the namespaces used by Network Observability (main and privileged). It is disabled by default.
2674
2676
These network policies better isolate the Network Observability components to prevent undesired connections to them.
2675
-
To increase the security of connections, enable this option or create your own network policy.
2677
+
This option is enabled by default, disable it to manually manage network policies
2676
2678
2677
2679
|===
2678
2680
== .spec.processor
@@ -2702,7 +2704,7 @@ This feature requires the "topology.kubernetes.io/zone" label to be set on nodes
2702
2704
| `object`
2703
2705
| `advanced` allows setting some aspects of the internal configuration of the flow processor.
2704
2706
This section is aimed mostly for debugging and fine-grained performance optimizations,
2705
-
such as `GOGC` and `GOMAXPROCS` environment vars. Set these values at your own risk.
2707
+
such as `GOGC` and `GOMAXPROCS` environment variables. Set these values at your own risk.
2706
2708
2707
2709
| `clusterName`
2708
2710
| `string`
@@ -2782,7 +2784,7 @@ Description::
2782
2784
--
2783
2785
`advanced` allows setting some aspects of the internal configuration of the flow processor.
2784
2786
This section is aimed mostly for debugging and fine-grained performance optimizations,
2785
-
such as `GOGC` and `GOMAXPROCS` environment vars. Set these values at your own risk.
2787
+
such as `GOGC` and `GOMAXPROCS` environment variables. Set these values at your own risk.
2786
2788
--
2787
2789
2788
2790
Type::
@@ -2988,7 +2990,7 @@ Type::
2988
2990
2989
2991
| `sampling`
2990
2992
| `integer`
2991
-
| `sampling` is the sampling ratio when deduper `mode` is `Sample`. For example, a value of `50` means that 1 flow in 50 is sampled.
2993
+
| `sampling` is the sampling interval when deduper `mode` is `Sample`. For example, a value of `50` means that 1 flow in 50 is sampled.
2992
2994
2993
2995
|===
2994
2996
== .spec.processor.filters
@@ -3033,7 +3035,7 @@ Type::
3033
3035
3034
3036
| `sampling`
3035
3037
| `integer`
3036
-
| `sampling` is an optional sampling ratio to apply to this filter. For example, a value of `50` means that 1 matching flow in 50 is sampled.
3038
+
| `sampling` is an optional sampling interval to apply to this filter. For example, a value of `50` means that 1 matching flow in 50 is sampled.
3037
3039
3038
3040
|===
3039
3041
== .spec.processor.kafkaConsumerAutoscaler
@@ -3067,15 +3069,18 @@ Type::
3067
3069
|===
3068
3070
| Property | Type | Description
3069
3071
3072
+
| `alerts`
3073
+
| `array`
3074
+
| `alerts` is a list of alerts to be created for Prometheus AlertManager, organized by templates and variants [Unsupported (*)].
3075
+
This is currently an experimental feature behind a feature gate. To enable, edit `spec.processor.advanced.env` by adding `EXPERIMENTAL_ALERTS_HEALTH` set to `true`.
3076
+
More information on alerts: https://github.com/netobserv/network-observability-operator/blob/main/docs/Alerts.md
3077
+
3070
3078
| `disableAlerts`
3071
3079
| `array (string)`
3072
-
| `disableAlerts` is a list of alerts that should be disabled.
3073
-
Possible values are: +
3074
-
3075
-
`NetObservNoFlows`, which is triggered when no flows are being observed for a certain period. +
3076
-
3077
-
`NetObservLokiError`, which is triggered when flows are being dropped due to Loki errors. +
3078
-
3080
+
| `disableAlerts` is a list of alert groups that should be disabled from the default set of alerts.
3081
+
Possible values are: `NetObservNoFlows`, `NetObservLokiError`, `PacketDropsByKernel`, `PacketDropsByDevice`, `IPsecErrors`, `NetpolDenied`,
More information on alerts: https://github.com/netobserv/network-observability-operator/blob/main/docs/Alerts.md
3079
3084
3080
3085
| `includeList`
3081
3086
| `array (string)`
@@ -3094,6 +3099,140 @@ More information, with full list of available metrics: https://github.com/netobs
3094
3099
| `object`
3095
3100
| Metrics server endpoint configuration for Prometheus scraper
3096
3101
3102
+
|===
3103
+
== .spec.processor.metrics.alerts
3104
+
Description::
3105
+
+
3106
+
--
3107
+
`alerts` is a list of alerts to be created for Prometheus AlertManager, organized by templates and variants [Unsupported (*)].
3108
+
This is currently an experimental feature behind a feature gate. To enable, edit `spec.processor.advanced.env` by adding `EXPERIMENTAL_ALERTS_HEALTH` set to `true`.
3109
+
More information on alerts: https://github.com/netobserv/network-observability-operator/blob/main/docs/Alerts.md
3110
+
--
3111
+
3112
+
Type::
3113
+
`array`
3114
+
3115
+
3116
+
3117
+
3118
+
== .spec.processor.metrics.alerts[]
3119
+
Description::
3120
+
+
3121
+
--
3122
+
3123
+
--
3124
+
3125
+
Type::
3126
+
`object`
3127
+
3128
+
Required::
3129
+
- `template`
3130
+
- `variants`
3131
+
3132
+
3133
+
3134
+
[cols="1,1,1",options="header"]
3135
+
|===
3136
+
| Property | Type | Description
3137
+
3138
+
| `template`
3139
+
| `string`
3140
+
| Alert template name.
3141
+
Possible values are: `PacketDropsByKernel`, `PacketDropsByDevice`, `IPsecErrors`, `NetpolDenied`,
Copy file name to clipboardExpand all lines: modules/network-observability-flowmetric-api-specifications.adoc
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,6 @@ Type::
74
74
`object`
75
75
76
76
Required::
77
-
- `metricName`
78
77
- `type`
79
78
80
79
@@ -104,7 +103,7 @@ When set to `Egress`, it is equivalent to adding the regular expression filter o
104
103
| `filters`
105
104
| `array`
106
105
| `filters` is a list of fields and values used to restrict which flows are taken into account.
107
-
Refer to the documentation for the list of available fields: https://docs.openshift.com/container-platform/latest/observability/network_observability/json-flows-format-reference.html.
106
+
Refer to the documentation for the list of available fields: https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/network_observability/json-flows-format-reference.
108
107
109
108
| `flatten`
110
109
| `array (string)`
@@ -113,16 +112,16 @@ For instance, when flattening `Interfaces` on a bytes counter, a flow having Int
113
112
114
113
| `labels`
115
114
| `array (string)`
116
-
| `labels` is a list of fields that should be used as Prometheus labels, also known as dimensions.
115
+
| `labels` is a list of fields that should be used as Prometheus labels, also known as dimensions (for example: `SrcK8S_Namespace`).
117
116
From choosing labels results the level of granularity of this metric, and the available aggregations at query time.
118
117
It must be done carefully as it impacts the metric cardinality (cf https://rhobs-handbook.netlify.app/products/openshiftmonitoring/telemetry.md/#what-is-the-cardinality-of-a-metric).
119
118
In general, avoid setting very high cardinality labels such as IP or MAC addresses.
120
119
"SrcK8S_OwnerName" or "DstK8S_OwnerName" should be preferred over "SrcK8S_Name" or "DstK8S_Name" as much as possible.
121
-
Refer to the documentation for the list of available fields: https://docs.openshift.com/container-platform/latest/observability/network_observability/json-flows-format-reference.html.
120
+
Refer to the documentation for the list of available fields: https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/network_observability/json-flows-format-reference.
122
121
123
122
| `metricName`
124
123
| `string`
125
-
| Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_".
124
+
| Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_". Leave empty to generate the name based on the `FlowMetric` resource name.
126
125
127
126
| `remap`
128
127
| `object (string)`
@@ -137,9 +136,9 @@ Use "Gauge" for other values that don't necessitate accuracy over time (gauges a
137
136
138
137
| `valueField`
139
138
| `string`
140
-
| `valueField` is the flow field that must be used as a value for this metric. This field must hold numeric values.
139
+
| `valueField` is the flow field that must be used as a value for this metric (for example: `Bytes`). This field must hold numeric values.
141
140
Leave empty to count flows rather than a specific value per flow.
142
-
Refer to the documentation for the list of available fields: https://docs.openshift.com/container-platform/latest/observability/network_observability/json-flows-format-reference.html.
141
+
Refer to the documentation for the list of available fields: https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/network_observability/json-flows-format-reference.
143
142
144
143
|===
145
144
== .spec.charts
@@ -262,7 +261,7 @@ Description::
262
261
+
263
262
--
264
263
`filters` is a list of fields and values used to restrict which flows are taken into account.
265
-
Refer to the documentation for the list of available fields: https://docs.openshift.com/container-platform/latest/observability/network_observability/json-flows-format-reference.html.
264
+
Refer to the documentation for the list of available fields: https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/network_observability/json-flows-format-reference.
266
265
--
267
266
268
267
Type::
@@ -293,7 +292,7 @@ Required::
293
292
294
293
| `field`
295
294
| `string`
296
-
| Name of the field to filter on
295
+
| Name of the field to filter on (for example: `SrcK8S_Namespace`).
297
296
298
297
| `matchType`
299
298
| `string`
@@ -303,4 +302,4 @@ Required::
303
302
| `string`
304
303
| Value to filter on. When `matchType` is `Equal` or `NotEqual`, you can use field injection with `$(SomeField)` to refer to any other field of the flow.
0 commit comments