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
Copy file name to clipboardExpand all lines: api/flowcollector/v1beta2/flowcollector_types.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1058,7 +1058,7 @@ type FlowCollectorPrometheus struct {
1058
1058
// `PrometheusQuerier` defines the desired state for querying Prometheus (client...)
1059
1059
typePrometheusQuerierstruct {
1060
1060
// When `enable` is `true`, the Console plugin queries flow metrics from Prometheus instead of Loki whenever possible.
1061
-
// It is enbaled by default: set it to `false` to disable this feature.
1061
+
// It is enabled by default: set it to `false` to disable this feature.
1062
1062
// The Console plugin can use either Loki or Prometheus as a data source for metrics (see also `spec.loki`), or both.
1063
1063
// Not all queries are transposable from Loki to Prometheus. Hence, if Loki is disabled, some features of the plugin are disabled as well,
1064
1064
// such as getting per-pod information or viewing raw flows.
@@ -1504,6 +1504,7 @@ type SubnetLabel struct {
1504
1504
CIDRs []string`json:"cidrs,omitempty"`// Note, starting with k8s 1.31 / ocp 4.16 there's a new way to validate CIDR such as `+kubebuilder:validation:XValidation:rule="isCIDR(self)",message="field should be in CIDR notation format"`. But older versions would reject the CRD so we cannot implement it now to maintain compatibility.
1505
1505
1506
1506
// Label name, used to flag matching flows.
1507
+
// External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
Copy file name to clipboardExpand all lines: api/flowcollectorslice/v1alpha1/flowcollectorslice_types.go
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,10 @@ import (
6
6
7
7
// FlowCollectorSliceSpec defines the desired state of FlowCollectorSlice
8
8
typeFlowCollectorSliceSpecstruct {
9
-
// `subnetLabels` allows to customize subnets and IPs labelling, such as to identify cluster-external workloads or web services.
9
+
// `subnetLabels` allows you to customize subnets and IPs labeling, such as to identify cluster external workloads or web services.
10
+
// External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
10
11
// Beware that the subnet labels configured in FlowCollectorSlice are not limited to the flows of the related namespace: any flow
11
-
// in the whole cluster can be labelled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
12
+
// in the whole cluster can be labeled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
CIDRs []string`json:"cidrs,omitempty"`// Note, starting with k8s 1.31 / ocp 4.16 there's a new way to validate CIDR such as `+kubebuilder:validation:XValidation:rule="isCIDR(self)",message="field should be in CIDR notation format"`. But older versions would reject the CRD so we cannot implement it now to maintain compatibility.
28
+
27
29
// Label name, used to flag matching flows.
30
+
// External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
28
31
//+required
29
32
Namestring`json:"name,omitempty"`
30
33
}
@@ -43,7 +46,7 @@ type FlowCollectorSliceStatus struct {
43
46
44
47
// +kubebuilder:object:root=true
45
48
// +kubebuilder:subresource:status
46
-
// FlowMetric is the API allowing to create custom metrics from the collected flow logs.
49
+
// FlowCollectorSlice is the API allowing to decentralize some of the FlowCollector configuration per namespace tenant.
Copy file name to clipboardExpand all lines: bundle/manifests/flows.netobserv.io_flowcollectors.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6218,7 +6218,9 @@ spec:
6218
6218
type: string
6219
6219
type: array
6220
6220
name:
6221
-
description: Label name, used to flag matching flows.
6221
+
description: |-
6222
+
Label name, used to flag matching flows.
6223
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
6222
6224
pattern: ^[a-zA-Z_:-][a-zA-Z0-9_:-]*$
6223
6225
type: string
6224
6226
required:
@@ -6250,7 +6252,7 @@ spec:
6250
6252
enable:
6251
6253
description: |-
6252
6254
When `enable` is `true`, the Console plugin queries flow metrics from Prometheus instead of Loki whenever possible.
6253
-
It is enbaled by default: set it to `false` to disable this feature.
6255
+
It is enabled by default: set it to `false` to disable this feature.
6254
6256
The Console plugin can use either Loki or Prometheus as a data source for metrics (see also `spec.loki`), or both.
6255
6257
Not all queries are transposable from Loki to Prometheus. Hence, if Loki is disabled, some features of the plugin are disabled as well,
6256
6258
such as getting per-pod information or viewing raw flows.
Copy file name to clipboardExpand all lines: bundle/manifests/flows.netobserv.io_flowcollectorslices.yaml
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ spec:
17
17
- name: v1alpha1
18
18
schema:
19
19
openAPIV3Schema:
20
-
description: FlowMetric is the API allowing to create custom metrics from
21
-
the collected flow logs.
20
+
description: FlowCollectorSlice is the API allowing to decentralize some of
21
+
the FlowCollector configuration per namespace tenant.
22
22
properties:
23
23
apiVersion:
24
24
description: |-
@@ -49,9 +49,10 @@ spec:
49
49
type: integer
50
50
subnetLabels:
51
51
description: |-
52
-
`subnetLabels` allows to customize subnets and IPs labelling, such as to identify cluster-external workloads or web services.
52
+
`subnetLabels` allows you to customize subnets and IPs labeling, such as to identify cluster external workloads or web services.
53
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
53
54
Beware that the subnet labels configured in FlowCollectorSlice are not limited to the flows of the related namespace: any flow
54
-
in the whole cluster can be labelled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
55
+
in the whole cluster can be labeled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
55
56
precedence in case of conflicting rules.
56
57
items:
57
58
description: SubnetLabel allows to label subnets and IPs, such as
@@ -63,7 +64,9 @@ spec:
63
64
type: string
64
65
type: array
65
66
name:
66
-
description: Label name, used to flag matching flows.
67
+
description: |-
68
+
Label name, used to flag matching flows.
69
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
Copy file name to clipboardExpand all lines: config/crd/bases/flows.netobserv.io_flowcollectors.yaml
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -5750,7 +5750,9 @@ spec:
5750
5750
type: string
5751
5751
type: array
5752
5752
name:
5753
-
description: Label name, used to flag matching flows.
5753
+
description: |-
5754
+
Label name, used to flag matching flows.
5755
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
5754
5756
pattern: ^[a-zA-Z_:-][a-zA-Z0-9_:-]*$
5755
5757
type: string
5756
5758
required:
@@ -5778,7 +5780,7 @@ spec:
5778
5780
enable:
5779
5781
description: |-
5780
5782
When `enable` is `true`, the Console plugin queries flow metrics from Prometheus instead of Loki whenever possible.
5781
-
It is enbaled by default: set it to `false` to disable this feature.
5783
+
It is enabled by default: set it to `false` to disable this feature.
5782
5784
The Console plugin can use either Loki or Prometheus as a data source for metrics (see also `spec.loki`), or both.
5783
5785
Not all queries are transposable from Loki to Prometheus. Hence, if Loki is disabled, some features of the plugin are disabled as well,
5784
5786
such as getting per-pod information or viewing raw flows.
Copy file name to clipboardExpand all lines: config/crd/bases/flows.netobserv.io_flowcollectorslices.yaml
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ spec:
17
17
- name: v1alpha1
18
18
schema:
19
19
openAPIV3Schema:
20
-
description: FlowMetric is the API allowing to create custom metrics from
21
-
the collected flow logs.
20
+
description: FlowCollectorSlice is the API allowing to decentralize some of
21
+
the FlowCollector configuration per namespace tenant.
22
22
properties:
23
23
apiVersion:
24
24
description: |-
@@ -49,9 +49,10 @@ spec:
49
49
type: integer
50
50
subnetLabels:
51
51
description: |-
52
-
`subnetLabels` allows to customize subnets and IPs labelling, such as to identify cluster-external workloads or web services.
52
+
`subnetLabels` allows you to customize subnets and IPs labeling, such as to identify cluster external workloads or web services.
53
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
53
54
Beware that the subnet labels configured in FlowCollectorSlice are not limited to the flows of the related namespace: any flow
54
-
in the whole cluster can be labelled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
55
+
in the whole cluster can be labeled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
55
56
precedence in case of conflicting rules.
56
57
items:
57
58
description: SubnetLabel allows to label subnets and IPs, such as
@@ -63,7 +64,9 @@ spec:
63
64
type: string
64
65
type: array
65
66
name:
66
-
description: Label name, used to flag matching flows.
67
+
description: |-
68
+
Label name, used to flag matching flows.
69
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
Copy file name to clipboardExpand all lines: docs/FlowCollector.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12169,7 +12169,8 @@ SubnetLabel allows to label subnets and IPs, such as to identify cluster-externa
12169
12169
<td><b>name</b></td>
12170
12170
<td>string</td>
12171
12171
<td>
12172
-
Label name, used to flag matching flows.<br/>
12172
+
Label name, used to flag matching flows.
12173
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/><br/>
12173
12174
</td>
12174
12175
<td>true</td>
12175
12176
</tr></tbody>
@@ -12236,7 +12237,7 @@ Prometheus querying configuration, such as client settings, used in the Console
12236
12237
<td>boolean</td>
12237
12238
<td>
12238
12239
When `enable` is `true`, the Console plugin queries flow metrics from Prometheus instead of Loki whenever possible.
12239
-
It is enbaled by default: set it to `false` to disable this feature.
12240
+
It is enabled by default: set it to `false` to disable this feature.
12240
12241
The Console plugin can use either Loki or Prometheus as a data source for metrics (see also `spec.loki`), or both.
12241
12242
Not all queries are transposable from Loki to Prometheus. Hence, if Loki is disabled, some features of the plugin are disabled as well,
12242
12243
such as getting per-pod information or viewing raw flows.
`subnetLabels` allows to customize subnets and IPs labelling, such as to identify cluster-external workloads or web services.
100
+
`subnetLabels` allows you to customize subnets and IPs labeling, such as to identify cluster external workloads or web services.
101
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/>
101
102
Beware that the subnet labels configured in FlowCollectorSlice are not limited to the flows of the related namespace: any flow
102
-
in the whole cluster can be labelled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
103
+
in the whole cluster can be labeled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
103
104
precedence in case of conflicting rules.<br/>
104
105
</td>
105
106
<td>false</td>
@@ -134,7 +135,8 @@ SubnetLabel allows to label subnets and IPs, such as to identify cluster-externa
134
135
<td><b>name</b></td>
135
136
<td>string</td>
136
137
<td>
137
-
Label name, used to flag matching flows.<br/>
138
+
Label name, used to flag matching flows.
139
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided.<br/><br/>
Copy file name to clipboardExpand all lines: docs/flowcollector-flows-netobserv-io-v1beta2.adoc
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3591,6 +3591,8 @@ Required::
3591
3591
| `name`
3592
3592
| `string`
3593
3593
| Label name, used to flag matching flows.
3594
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided. +
Copy file name to clipboardExpand all lines: docs/flowcollectorslice-flows-netobserv-io-v1alpha1.adoc
+11-5Lines changed: 11 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
Description::
9
9
+
10
10
--
11
-
FlowMetric is the API allowing to create custom metrics from the collected flow logs.
11
+
FlowCollectorSlice is the API allowing to decentralize some of the FlowCollector configuration per namespace tenant.
12
12
--
13
13
14
14
Type::
@@ -74,19 +74,23 @@ Type::
74
74
75
75
| `subnetLabels`
76
76
| `array`
77
-
| `subnetLabels` allows to customize subnets and IPs labelling, such as to identify cluster-external workloads or web services.
77
+
| `subnetLabels` allows you to customize subnets and IPs labeling, such as to identify cluster external workloads or web services.
78
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided. +
79
+
78
80
Beware that the subnet labels configured in FlowCollectorSlice are not limited to the flows of the related namespace: any flow
79
-
in the whole cluster can be labelled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
81
+
in the whole cluster can be labeled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
80
82
precedence in case of conflicting rules.
81
83
82
84
|===
83
85
== .spec.subnetLabels
84
86
Description::
85
87
+
86
88
--
87
-
`subnetLabels` allows to customize subnets and IPs labelling, such as to identify cluster-external workloads or web services.
89
+
`subnetLabels` allows you to customize subnets and IPs labeling, such as to identify cluster external workloads or web services.
90
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided. +
91
+
88
92
Beware that the subnet labels configured in FlowCollectorSlice are not limited to the flows of the related namespace: any flow
89
-
in the whole cluster can be labelled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
93
+
in the whole cluster can be labeled using this configuration. However, subnet labels defined in the cluster-scoped FlowCollector take
90
94
precedence in case of conflicting rules.
91
95
--
92
96
@@ -123,6 +127,8 @@ Required::
123
127
| `name`
124
128
| `string`
125
129
| Label name, used to flag matching flows.
130
+
External subnets must be labeled with the prefix `EXT:`, or not labeled at all, in order to work with default quick filters and some metrics examples provided. +
0 commit comments