We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ee443c commit 49cd6d7Copy full SHA for 49cd6d7
.nais/alerts.yaml
@@ -37,7 +37,7 @@ spec:
37
38
# This alert checks if memory usage exceeds 90% of the 12GB limit, which could cause instability.
39
- alert: HighMemoryUsage
40
- expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * 12 * 1024 * 1024 * 1024)
+ expr: process_resident_memory_bytes{app="pseudo-service"} > (0.9 * on(namespace, pod) kube_pod_container_resource_limits_memory_bytes{pod=~"pseudo-service-.*"})
41
for: 5m
42
annotations:
43
title: "High memory usage detected"
0 commit comments