From bc82c7d6a322167d6951ba74e609e6b0bd8b57bb Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 29 Apr 2025 11:11:54 -0400 Subject: [PATCH] Add recording rules for UDN telemetry --- .../ovn-kubernetes/managed/alert-rules-control-plane.yaml | 4 ++++ .../ovn-kubernetes/self-hosted/alert-rules-control-plane.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/bindata/network/ovn-kubernetes/managed/alert-rules-control-plane.yaml b/bindata/network/ovn-kubernetes/managed/alert-rules-control-plane.yaml index 95198bf503..ad51667dd0 100644 --- a/bindata/network/ovn-kubernetes/managed/alert-rules-control-plane.yaml +++ b/bindata/network/ovn-kubernetes/managed/alert-rules-control-plane.yaml @@ -23,6 +23,10 @@ spec: expr: max by(direction, action)(ovnkube_controller_admin_network_policies_rules) - record: cluster:ovnkube_controller_baseline_admin_network_policies_rules:max expr: max by(direction, action)(ovnkube_controller_baseline_admin_network_policies_rules) + - record: cluster:ovnkube_clustermanager_user_defined_networks:max + expr: max by(role, topology)(ovnkube_clustermanager_user_defined_networks) + - record: cluster:ovnkube_clustermanager_cluster_user_defined_networks:max + expr: max by(role, topology)(ovnkube_clustermanager_cluster_user_defined_networks) # OVN kubernetes cluster manager functional alerts - alert: V4SubnetAllocationThresholdExceeded annotations: diff --git a/bindata/network/ovn-kubernetes/self-hosted/alert-rules-control-plane.yaml b/bindata/network/ovn-kubernetes/self-hosted/alert-rules-control-plane.yaml index 74bc0bc559..e17cbddb7c 100644 --- a/bindata/network/ovn-kubernetes/self-hosted/alert-rules-control-plane.yaml +++ b/bindata/network/ovn-kubernetes/self-hosted/alert-rules-control-plane.yaml @@ -22,6 +22,10 @@ spec: expr: max by(direction, action)(ovnkube_controller_admin_network_policies_rules) - record: cluster:ovnkube_controller_baseline_admin_network_policies_rules:max expr: max by(direction, action)(ovnkube_controller_baseline_admin_network_policies_rules) + - record: cluster:ovnkube_clustermanager_user_defined_networks:max + expr: max by(role, topology)(ovnkube_clustermanager_user_defined_networks) + - record: cluster:ovnkube_clustermanager_cluster_user_defined_networks:max + expr: max by(role, topology)(ovnkube_clustermanager_cluster_user_defined_networks) # OVN kubernetes cluster manager functional alerts - alert: V4SubnetAllocationThresholdExceeded annotations: