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: bundle/manifests/flows.netobserv.io_flowcollectors.yaml
+35-22Lines changed: 35 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -5801,19 +5801,41 @@ spec:
5801
5801
description: '`Metrics` define the processor configuration regarding
5802
5802
metrics'
5803
5803
properties:
5804
-
alerts:
5804
+
disableAlerts:
5805
5805
description: |-
5806
-
`alerts` is a list of alerts to be created for Prometheus AlertManager, organized by templates and variants [Unsupported (*)].
5807
-
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`.
5806
+
`disableAlerts` is a list of alert groups that should be disabled from the default set of alerts.
5807
+
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
5810
+
items:
5811
+
type: string
5812
+
type: array
5813
+
healthRules:
5814
+
description: |-
5815
+
`healthRules` is a list of health monitoring rules to be created, organized by templates, mode (alert or recording-rule), and variants [Unsupported (*)].
5816
+
Each rule can be configured independently as either an alert or a recording rule via its `mode` field.
5817
+
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`.
5818
+
More information: https://github.com/netobserv/network-observability-operator/blob/main/docs/Alerts.md
5809
5819
items:
5810
5820
properties:
5821
+
mode:
5822
+
default: alert
5823
+
description: |-
5824
+
Mode defines whether this health rule generates an alert or a recording rule.
5825
+
Possible values are `alert` (default) or `recording-rule`.
5826
+
- `alert`: Generate Prometheus alerts that fire when thresholds are exceeded.
5827
+
- `recording-rule`: Generate Prometheus recording rules that pre-compute health metrics for passive consumption.
5828
+
Recording rules avoid alert fatigue and are useful for dashboard-based health monitoring.
5829
+
enum:
5830
+
- alert
5831
+
- recording-rule
5832
+
type: string
5811
5833
template:
5812
5834
description: |-
5813
-
Alert template name.
5835
+
Health rule template name.
5814
5836
Possible values are: `PacketDropsByKernel`, `PacketDropsByDevice`, `IPsecErrors`, `NetpolDenied`,
Copy file name to clipboardExpand all lines: helm/crds/flows.netobserv.io_flowcollectors.yaml
+32-20Lines changed: 32 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -5366,19 +5366,41 @@ spec:
5366
5366
metrics:
5367
5367
description: '`Metrics` define the processor configuration regarding metrics'
5368
5368
properties:
5369
-
alerts:
5369
+
disableAlerts:
5370
5370
description: |-
5371
-
`alerts` is a list of alerts to be created for Prometheus AlertManager, organized by templates and variants [Unsupported (*)].
5372
-
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`.
5371
+
`disableAlerts` is a list of alert groups that should be disabled from the default set of alerts.
5372
+
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
5375
+
items:
5376
+
type: string
5377
+
type: array
5378
+
healthRules:
5379
+
description: |-
5380
+
`healthRules` is a list of health monitoring rules to be created, organized by templates, mode (alert or recording-rule), and variants [Unsupported (*)].
5381
+
Each rule can be configured independently as either an alert or a recording rule via its `mode` field.
5382
+
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`.
5383
+
More information: https://github.com/netobserv/network-observability-operator/blob/main/docs/Alerts.md
5374
5384
items:
5375
5385
properties:
5386
+
mode:
5387
+
default: alert
5388
+
description: |-
5389
+
Mode defines whether this health rule generates an alert or a recording rule.
5390
+
Possible values are `alert` (default) or `recording-rule`.
5391
+
- `alert`: Generate Prometheus alerts that fire when thresholds are exceeded.
5392
+
- `recording-rule`: Generate Prometheus recording rules that pre-compute health metrics for passive consumption.
5393
+
Recording rules avoid alert fatigue and are useful for dashboard-based health monitoring.
5394
+
enum:
5395
+
- alert
5396
+
- recording-rule
5397
+
type: string
5376
5398
template:
5377
5399
description: |-
5378
-
Alert template name.
5400
+
Health rule template name.
5379
5401
Possible values are: `PacketDropsByKernel`, `PacketDropsByDevice`, `IPsecErrors`, `NetpolDenied`,
More information on alerts: https://github.com/netobserv/network-observability-operator/blob/main/docs/Alerts.md
5403
+
More information: https://github.com/netobserv/network-observability-operator/blob/main/docs/Alerts.md
5382
5404
enum:
5383
5405
- PacketDropsByKernel
5384
5406
- PacketDropsByDevice
@@ -5410,8 +5432,9 @@ spec:
5410
5432
type: string
5411
5433
thresholds:
5412
5434
description: |-
5413
-
Thresholds of the alert per severity.
5414
-
They are expressed as a percentage of errors above which the alert is triggered. They must be parsable as floats.
5435
+
Thresholds per severity.
5436
+
Only used when mode is 'alert'. They are expressed as a percentage of errors above which the alert is triggered. They must be parsable as floats.
5437
+
For recording-rule mode, this field is ignored.
5415
5438
properties:
5416
5439
critical:
5417
5440
description: Threshold for severity `critical`. Leave empty to not generate a Critical alert.
@@ -5424,29 +5447,18 @@ spec:
5424
5447
type: string
5425
5448
type: object
5426
5449
trendDuration:
5427
-
description: For trending alerts, the duration interval for baseline comparison. For example, "2h" means comparing against a 2-hours average. Defaults to 2h.
5450
+
description: For trending health rules, the duration interval for baseline comparison. For example, "2h" means comparing against a 2-hours average. Defaults to 2h.
5428
5451
type: string
5429
5452
trendOffset:
5430
-
description: For trending alerts, the time offset for baseline comparison. For example, "1d" means comparing against yesterday. Defaults to 1d.
5453
+
description: For trending health rules, the time offset for baseline comparison. For example, "1d" means comparing against yesterday. Defaults to 1d.
5431
5454
type: string
5432
-
required:
5433
-
- thresholds
5434
5455
type: object
5435
5456
type: array
5436
5457
required:
5437
5458
- template
5438
5459
- variants
5439
5460
type: object
5440
5461
type: array
5441
-
disableAlerts:
5442
-
description: |-
5443
-
`disableAlerts` is a list of alert groups that should be disabled from the default set of alerts.
5444
-
Possible values are: `NetObservNoFlows`, `NetObservLokiError`, `PacketDropsByKernel`, `PacketDropsByDevice`, `IPsecErrors`, `NetpolDenied`,
0 commit comments