Skip to content

Commit 3ae7013

Browse files
committed
edit high memory alert
1 parent 772643d commit 3ae7013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.nais/alerts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737

3838
# This alert checks if memory usage exceeds 90% of the memory limit assigned to the pseudo-service pod.
3939
- alert: HighMemoryUsage
40-
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.*"})
40+
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"})
4141
for: 5m
4242
annotations:
4343
title: "High memory usage detected"

0 commit comments

Comments
 (0)