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/flowmetrics/v1alpha1/flowmetric_types.go
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ const (
43
43
)
44
44
45
45
typeMetricFilterstruct {
46
-
// Name of the field to filter on
46
+
// Name of the field to filter on (for example: `SrcK8S_Namespace`).
47
47
// +required
48
48
Fieldstring`json:"field"`
49
49
@@ -63,7 +63,7 @@ type MetricFilter struct {
63
63
// usage of Prometheus workloads as this could potentially have a high impact. Cf https://rhobs-handbook.netlify.app/products/openshiftmonitoring/telemetry.md/#what-is-the-cardinality-of-a-metric<br>
64
64
// To check the cardinality of all NetObserv metrics, run as `promql`: `count({__name__=~"netobserv.*"}) by (__name__)`.
65
65
typeFlowMetricSpecstruct {
66
-
// Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_".
66
+
// Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_". Leave empty to generate the name based on the `FlowMetric` resource name.
// Use "Counter" for any value that increases over time and on which you can compute a rate, such as Bytes or Packets.
73
73
// Use "Histogram" for any value that must be sampled independently, such as latencies.
74
74
// Use "Gauge" for other values that don't necessitate accuracy over time (gauges are sampled only every N seconds when Prometheus fetches the metric).
// `valueField` is the flow field that must be used as a value for this metric. This field must hold numeric values.
79
+
// `valueField` is the flow field that must be used as a value for this metric (for example: `Bytes`). This field must hold numeric values.
80
80
// Leave empty to count flows rather than a specific value per flow.
81
81
// 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.
82
82
// +optional
@@ -87,7 +87,7 @@ type FlowMetricSpec struct {
87
87
// +optional
88
88
Filters []MetricFilter`json:"filters"`
89
89
90
-
// `labels` is a list of fields that should be used as Prometheus labels, also known as dimensions.
90
+
// `labels` is a list of fields that should be used as Prometheus labels, also known as dimensions (for example: `SrcK8S_Namespace`).
91
91
// From choosing labels results the level of granularity of this metric, and the available aggregations at query time.
92
92
// 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).
93
93
// In general, avoid setting very high cardinality labels such as IP or MAC addresses.
Copy file name to clipboardExpand all lines: bundle/manifests/flows.netobserv.io_flowmetrics.yaml
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ spec:
162
162
items:
163
163
properties:
164
164
field:
165
-
description: Name of the field to filter on
165
+
description: 'Name of the field to filter on (for example: `SrcK8S_Namespace`).'
166
166
type: string
167
167
matchType:
168
168
default: Equal
@@ -194,7 +194,7 @@ spec:
194
194
type: array
195
195
labels:
196
196
description: |-
197
-
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions.
197
+
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions (for example: `SrcK8S_Namespace`).
198
198
From choosing labels results the level of granularity of this metric, and the available aggregations at query time.
199
199
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).
200
200
In general, avoid setting very high cardinality labels such as IP or MAC addresses.
@@ -205,7 +205,8 @@ spec:
205
205
type: array
206
206
metricName:
207
207
description: Name of the metric. In Prometheus, it is automatically
208
-
prefixed with "netobserv_".
208
+
prefixed with "netobserv_". Leave empty to generate the name based
209
+
on the `FlowMetric` resource name.
209
210
pattern: ^[a-zA-Z_][a-zA-Z0-9:_]*$|^$
210
211
type: string
211
212
remap:
@@ -225,10 +226,11 @@ spec:
225
226
enum:
226
227
- Counter
227
228
- Histogram
229
+
- Gauge
228
230
type: string
229
231
valueField:
230
232
description: |-
231
-
`valueField` is the flow field that must be used as a value for this metric. This field must hold numeric values.
233
+
`valueField` is the flow field that must be used as a value for this metric (for example: `Bytes`). This field must hold numeric values.
232
234
Leave empty to count flows rather than a specific value per flow.
233
235
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.
Copy file name to clipboardExpand all lines: config/crd/bases/flows.netobserv.io_flowmetrics.yaml
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ spec:
162
162
items:
163
163
properties:
164
164
field:
165
-
description: Name of the field to filter on
165
+
description: 'Name of the field to filter on (for example: `SrcK8S_Namespace`).'
166
166
type: string
167
167
matchType:
168
168
default: Equal
@@ -194,7 +194,7 @@ spec:
194
194
type: array
195
195
labels:
196
196
description: |-
197
-
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions.
197
+
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions (for example: `SrcK8S_Namespace`).
198
198
From choosing labels results the level of granularity of this metric, and the available aggregations at query time.
199
199
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).
200
200
In general, avoid setting very high cardinality labels such as IP or MAC addresses.
@@ -205,7 +205,8 @@ spec:
205
205
type: array
206
206
metricName:
207
207
description: Name of the metric. In Prometheus, it is automatically
208
-
prefixed with "netobserv_".
208
+
prefixed with "netobserv_". Leave empty to generate the name based
209
+
on the `FlowMetric` resource name.
209
210
pattern: ^[a-zA-Z_][a-zA-Z0-9:_]*$|^$
210
211
type: string
211
212
remap:
@@ -225,10 +226,11 @@ spec:
225
226
enum:
226
227
- Counter
227
228
- Histogram
229
+
- Gauge
228
230
type: string
229
231
valueField:
230
232
description: |-
231
-
`valueField` is the flow field that must be used as a value for this metric. This field must hold numeric values.
233
+
`valueField` is the flow field that must be used as a value for this metric (for example: `Bytes`). This field must hold numeric values.
232
234
Leave empty to count flows rather than a specific value per flow.
233
235
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.
Copy file name to clipboardExpand all lines: docs/FlowMetric.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Use "Counter" for any value that increases over time and on which you can comput
100
100
Use "Histogram" for any value that must be sampled independently, such as latencies.
101
101
Use "Gauge" for other values that don't necessitate accuracy over time (gauges are sampled only every N seconds when Prometheus fetches the metric).<br/>
102
102
<br/>
103
-
<i>Enum</i>: Counter, Histogram<br/>
103
+
<i>Enum</i>: Counter, Histogram, Gauge<br/>
104
104
</td>
105
105
<td>true</td>
106
106
</tr><tr>
@@ -156,7 +156,7 @@ For instance, when flattening `Interfaces` on a bytes counter, a flow having Int
156
156
<td><b>labels</b></td>
157
157
<td>[]string</td>
158
158
<td>
159
-
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions.
159
+
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions (for example: `SrcK8S_Namespace`).
160
160
From choosing labels results the level of granularity of this metric, and the available aggregations at query time.
161
161
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).
162
162
In general, avoid setting very high cardinality labels such as IP or MAC addresses.
@@ -168,7 +168,7 @@ Refer to the documentation for the list of available fields: https://docs.redhat
168
168
<td><b>metricName</b></td>
169
169
<td>string</td>
170
170
<td>
171
-
Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_".<br/>
171
+
Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_". Leave empty to generate the name based on the `FlowMetric` resource name.<br/>
172
172
</td>
173
173
<td>false</td>
174
174
</tr><tr>
@@ -182,7 +182,7 @@ Refer to the documentation for the list of available fields: https://docs.redhat
182
182
<td><b>valueField</b></td>
183
183
<td>string</td>
184
184
<td>
185
-
`valueField` is the flow field that must be used as a value for this metric. This field must hold numeric values.
185
+
`valueField` is the flow field that must be used as a value for this metric (for example: `Bytes`). This field must hold numeric values.
186
186
Leave empty to count flows rather than a specific value per flow.
187
187
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.<br/>
188
188
</td>
@@ -330,7 +330,7 @@ To learn more about `promQL`, refer to the Prometheus documentation: https://pro
330
330
<td><b>field</b></td>
331
331
<td>string</td>
332
332
<td>
333
-
Name of the field to filter on<br/>
333
+
Name of the field to filter on (for example: `SrcK8S_Namespace`).<br/>
Copy file name to clipboardExpand all lines: helm/crds/flows.netobserv.io_flowmetrics.yaml
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -152,7 +152,7 @@ spec:
152
152
items:
153
153
properties:
154
154
field:
155
-
description: Name of the field to filter on
155
+
description: 'Name of the field to filter on (for example: `SrcK8S_Namespace`).'
156
156
type: string
157
157
matchType:
158
158
default: Equal
@@ -182,7 +182,7 @@ spec:
182
182
type: array
183
183
labels:
184
184
description: |-
185
-
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions.
185
+
`labels` is a list of fields that should be used as Prometheus labels, also known as dimensions (for example: `SrcK8S_Namespace`).
186
186
From choosing labels results the level of granularity of this metric, and the available aggregations at query time.
187
187
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).
188
188
In general, avoid setting very high cardinality labels such as IP or MAC addresses.
@@ -192,7 +192,7 @@ spec:
192
192
type: string
193
193
type: array
194
194
metricName:
195
-
description: Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_".
195
+
description: Name of the metric. In Prometheus, it is automatically prefixed with "netobserv_". Leave empty to generate the name based on the `FlowMetric` resource name.
196
196
pattern: ^[a-zA-Z_][a-zA-Z0-9:_]*$|^$
197
197
type: string
198
198
remap:
@@ -210,10 +210,11 @@ spec:
210
210
enum:
211
211
- Counter
212
212
- Histogram
213
+
- Gauge
213
214
type: string
214
215
valueField:
215
216
description: |-
216
-
`valueField` is the flow field that must be used as a value for this metric. This field must hold numeric values.
217
+
`valueField` is the flow field that must be used as a value for this metric (for example: `Bytes`). This field must hold numeric values.
217
218
Leave empty to count flows rather than a specific value per flow.
218
219
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.
0 commit comments