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
NETOBSERV-2596: Make console plugin controller use health metadata for config, set some default rules as recording (#2388)
* Make console plugin controller use health metadata for config, set some default rules as recording
- Refactor all alerts to implement a HealthRule interface
- HealthRule provides the Annotations, RecordingName and the
PrometheusRule
- RecordingName now provided explicitly
- Split logic between "builder" and "context"
- Console plugin controller just dumps annotations to config
- Change some defaults to Recording
* Add kind label to metadata; rename owner->workload for user-exposed api
Since these annotations are a user-exposed API, it is preferable to use
a more k8s-standard terminology, ie "workload" instead of "owner".
* fix todos
* Move more rules as recording
* metadata doc
Copy file name to clipboardExpand all lines: docs/HealthRules.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,8 @@ The label `netobserv: "true"` is required.
146
146
The annotation `netobserv_io_network_health` is optional, and gives you some control on how the alert renders in the Health page. It is a JSON string that consists in:
147
147
- `namespaceLabels`: one or more labels that hold namespaces. When provided, the alert will show up under the "Namespaces" tab.
148
148
- `nodeLabels`: one or more labels that hold node names. When provided, the alert will show up under the "Nodes" tab.
149
-
- `ownerLabels`: one or more labels that hold owner/workload names. When provided, the alert will show up under the "Owners" tab.
149
+
- `workloadLabels`: one or more labels that hold owner/workload names. When provided alongside with `kindLabels`, the alert will show up under the "Owners" tab.
150
+
- `kindLabels`: one or more labels that hold owner/workload kinds. When provided alongside with `workloadLabels`, the alert will show up under the "Owners" tab.
150
151
- `threshold`: the alert threshold as a string, expected to match the one defined in PromQL.
151
152
- `unit`: the data unit, used only for display purpose.
152
153
- `upperBound`: an upper bound value used to compute score on a closed scale. It doesn't necessarily have to be a maximum of the metric values, but metric values will be clamped if they are above the upper bound.
0 commit comments