Skip to content

Commit 49cd6d7

Browse files
committed
change expression for HighMemoryUsage
1 parent 3ee443c commit 49cd6d7

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 12GB limit, which could cause instability.
3939
- alert: HighMemoryUsage
40-
expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * 12 * 1024 * 1024 * 1024)
40+
expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * on(namespace, pod) kube_pod_container_resource_limits_memory_bytes{pod=~"pseudo-service-.*"})
4141
for: 5m
4242
annotations:
4343
title: "High memory usage detected"

0 commit comments

Comments
 (0)