From 3ae70135c4c47e5a7bfa27bdba7eec766e1eb70b Mon Sep 17 00:00:00 2001 From: ssb-jnk Date: Fri, 10 Jan 2025 13:31:15 +0100 Subject: [PATCH] edit high memory alert --- .nais/alerts.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.nais/alerts.yaml b/.nais/alerts.yaml index fc442b3..436ead1 100644 --- a/.nais/alerts.yaml +++ b/.nais/alerts.yaml @@ -37,7 +37,7 @@ spec: # This alert checks if memory usage exceeds 90% of the memory limit assigned to the pseudo-service pod. - alert: HighMemoryUsage - expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * on(pod, namespace) group_left kube_pod_container_resource_limits_memory_bytes{pod=~"pseudo-service.*"}) + expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * on(app) group_left(container_memory_limit_bytes) container_memory_limit_bytes{app="pseudo-service"}) for: 5m annotations: title: "High memory usage detected"